From 0df032976fbb3c7a654c57a1ac9876ecd0ac1e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 18 Dec 2004 22:54:37 +0000 Subject: [PATCH] Add some DPRINTs svn path=/trunk/; revision=12211 --- reactos/lib/advapi32/reg/reg.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/reactos/lib/advapi32/reg/reg.c b/reactos/lib/advapi32/reg/reg.c index 92011105da2..70edf73f551 100644 --- a/reactos/lib/advapi32/reg/reg.c +++ b/reactos/lib/advapi32/reg/reg.c @@ -1,4 +1,4 @@ -/* $Id: reg.c,v 1.64 2004/12/02 14:08:27 ekohl Exp $ +/* $Id: reg.c,v 1.65 2004/12/18 22:54:37 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -1730,6 +1730,7 @@ RegOpenKeyA (HKEY hKey, LONG ErrorCode; NTSTATUS Status; + DPRINT("RegOpenKeyA hKey 0x%x lpSubKey %s phkResult %p\n", hKey, lpSubKey, phkResult); Status = MapDefaultKey (&KeyHandle, hKey); if (!NT_SUCCESS(Status)) @@ -1780,6 +1781,7 @@ RegOpenKeyW (HKEY hKey, LONG ErrorCode; NTSTATUS Status; + DPRINT("RegOpenKeyW hKey 0x%x lpSubKey %S phkResult %p\n", hKey, lpSubKey, phkResult); Status = MapDefaultKey (&KeyHandle, hKey); if (!NT_SUCCESS(Status)) @@ -1828,6 +1830,8 @@ RegOpenKeyExA (HKEY hKey, LONG ErrorCode; NTSTATUS Status; + DPRINT("RegOpenKeyExA hKey 0x%x lpSubKey %s ulOptions 0x%x samDesired 0x%x phkResult %p\n", + hKey, lpSubKey, ulOptions, samDesired, phkResult); Status = MapDefaultKey (&KeyHandle, hKey); if (!NT_SUCCESS(Status)) @@ -1877,6 +1881,8 @@ RegOpenKeyExW (HKEY hKey, LONG ErrorCode; NTSTATUS Status; + DPRINT("RegOpenKeyExW hKey 0x%x lpSubKey %S ulOptions 0x%x samDesired 0x%x phkResult %p\n", + hKey, lpSubKey, ulOptions, samDesired, phkResult); Status = MapDefaultKey (&KeyHandle, hKey); if (!NT_SUCCESS(Status)) @@ -2435,6 +2441,9 @@ RegQueryValueExA (HKEY hKey, DWORD Length; DWORD Type; + DPRINT("hKey 0x%X lpValueName %s lpData 0x%X lpcbData %d\n", + hKey, lpValueName, lpData, lpcbData ? *lpcbData : 0); + if (lpData != NULL && lpcbData == NULL) { SetLastError(ERROR_INVALID_PARAMETER); @@ -2533,6 +2542,9 @@ RegQueryValueA (HKEY hKey, LONG ValueSize; LONG ErrorCode; + DPRINT("hKey 0x%X lpSubKey %s lpValue %p lpcbValue %d\n", + hKey, lpSubKey, lpValue, lpcbValue ? *lpcbValue : 0); + if (lpValue != NULL && lpcbValue == NULL) { @@ -2621,6 +2633,9 @@ RegQueryValueW (HKEY hKey, BOOL CloseRealKey; NTSTATUS Status; + DPRINT("hKey 0x%X lpSubKey %S lpValue %p lpcbValue %d\n", + hKey, lpSubKey, lpValue, lpcbValue ? *lpcbValue : 0); + Status = MapDefaultKey (&KeyHandle, hKey); if (!NT_SUCCESS(Status))