Author: cwittich
Date: Fri Sep 5 08:10:49 2008
New Revision: 35959
URL:
http://svn.reactos.org/svn/reactos?rev=35959&view=rev
Log:
fix the advapi32 crypt winetest crash
Modified:
trunk/reactos/lib/3rdparty/libwine/debug.c
Modified: trunk/reactos/lib/3rdparty/libwine/debug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/libwine/debug…
==============================================================================
--- trunk/reactos/lib/3rdparty/libwine/debug.c [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/libwine/debug.c [iso-8859-1] Fri Sep 5 08:10:49 2008
@@ -184,6 +184,8 @@
{
char *wine_debug;
DWORD dwLength;
+ /* GetEnvironmentVariableA will change LastError! */
+ DWORD LastError = GetLastError();
if (nb_debug_options != -1) return; /* already initialized */
nb_debug_options = 0;
@@ -199,6 +201,7 @@
free(wine_debug);
}
}
+ SetLastError(LastError);
}
/* varargs wrapper for funcs.dbg_vprintf */