mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
fix the advapi32 crypt winetest crash
svn path=/trunk/; revision=35959
This commit is contained in:
parent
a22ce9b036
commit
78b3d68c79
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;
|
char *wine_debug;
|
||||||
DWORD dwLength;
|
DWORD dwLength;
|
||||||
|
/* GetEnvironmentVariableA will change LastError! */
|
||||||
|
DWORD LastError = GetLastError();
|
||||||
|
|
||||||
if (nb_debug_options != -1) return; /* already initialized */
|
if (nb_debug_options != -1) return; /* already initialized */
|
||||||
nb_debug_options = 0;
|
nb_debug_options = 0;
|
||||||
|
@ -199,6 +201,7 @@ static void debug_init(void)
|
||||||
free(wine_debug);
|
free(wine_debug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SetLastError(LastError);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* varargs wrapper for funcs.dbg_vprintf */
|
/* varargs wrapper for funcs.dbg_vprintf */
|
||||||
|
|
Loading…
Reference in a new issue