Author: cwittich
Date: Thu Sep 18 07:54:45 2008
New Revision: 36302
URL:
http://svn.reactos.org/svn/reactos?rev=36302&view=rev
Log:
only touch the type on success or STATUS_BUFFER_OVERFLOW
Modified:
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Thu Sep 18 07:54:45 2008
@@ -3861,7 +3861,7 @@
}
}
- if (lpType != NULL)
+ if ((lpType != NULL) && (NT_SUCCESS(Status) || (Status ==
STATUS_BUFFER_OVERFLOW)))
{
*lpType = ValueInfo->Type;
}