mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
fix the advapi32 crypt winetest crash
svn path=/trunk/; revision=35959
This commit is contained in:
parent
a22ce9b036
commit
78b3d68c79
1 changed files with 3 additions and 0 deletions
3
reactos/lib/3rdparty/libwine/debug.c
vendored
3
reactos/lib/3rdparty/libwine/debug.c
vendored
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue