Skip to content

Commit

Permalink
[APPHELP] Set debug level in case of parse failure
Browse files Browse the repository at this point in the history
  • Loading branch information
learn-more committed Feb 24, 2018
1 parent 4b8f53c commit 0dd7143
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dll/appcompat/apphelp/apphelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PURPOSE: apphelp entrypoint / generic interface functions
* COPYRIGHT: Copyright 2011 André Hentschel
* 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
Expand Down Expand Up @@ -42,7 +42,7 @@ void ApphelppInitDebugLevel(void)
if (NT_SUCCESS(Status))
{
if (!NT_SUCCESS(RtlUnicodeStringToInteger(&DebugValue, 10, &NewLevel)))
NewLevel = 0;
NewLevel = SHIM_ERR;
}
g_ShimDebugLevel = NewLevel;
}
Expand All @@ -52,10 +52,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
switch (reason)
{
#ifndef __REACTOS__
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
#endif
case DLL_PROCESS_ATTACH:
g_hInstance = hinst;
DisableThreadLibraryCalls( hinst );
Expand Down Expand Up @@ -244,4 +240,3 @@ ApphelpCheckRunAppEx(
return TRUE;
}


0 comments on commit 0dd7143

Please sign in to comment.