mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +00:00
[APPHELP] Set debug level in case of parse failure
This commit is contained in:
parent
4b8f53c9e9
commit
0dd71438a4
1 changed files with 2 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
||||||
* PURPOSE: apphelp entrypoint / generic interface functions
|
* PURPOSE: apphelp entrypoint / generic interface functions
|
||||||
* COPYRIGHT: Copyright 2011 André Hentschel
|
* COPYRIGHT: Copyright 2011 André Hentschel
|
||||||
* Copyright 2013 Mislav Blaževic
|
* Copyright 2013 Mislav Blaževic
|
||||||
* Copyright 2015-2017 Mark Jansen (mark.jansen@reactos.org)
|
* Copyright 2015-2018 Mark Jansen (mark.jansen@reactos.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
|
@ -42,7 +42,7 @@ void ApphelppInitDebugLevel(void)
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
if (!NT_SUCCESS(RtlUnicodeStringToInteger(&DebugValue, 10, &NewLevel)))
|
if (!NT_SUCCESS(RtlUnicodeStringToInteger(&DebugValue, 10, &NewLevel)))
|
||||||
NewLevel = 0;
|
NewLevel = SHIM_ERR;
|
||||||
}
|
}
|
||||||
g_ShimDebugLevel = NewLevel;
|
g_ShimDebugLevel = NewLevel;
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||||
{
|
{
|
||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
#ifndef __REACTOS__
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
#endif
|
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
g_hInstance = hinst;
|
g_hInstance = hinst;
|
||||||
DisableThreadLibraryCalls( hinst );
|
DisableThreadLibraryCalls( hinst );
|
||||||
|
@ -244,4 +240,3 @@ ApphelpCheckRunAppEx(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue