fix the advapi32 crypt winetest crash

svn path=/trunk/; revision=35959
This commit is contained in:
Christoph von Wittich 2008-09-05 13:10:49 +00:00
parent a22ce9b036
commit 78b3d68c79

View file

@ -184,6 +184,8 @@ static void debug_init(void)
{
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 @@ static void debug_init(void)
free(wine_debug);
}
}
SetLastError(LastError);
}
/* varargs wrapper for funcs.dbg_vprintf */