Skip to content

Commit

Permalink
Update LRHookFunc.cpp
Browse files Browse the repository at this point in the history
Deal with JMS NGS warning
  • Loading branch information
InWILL committed Jun 30, 2023
1 parent f55d253 commit 5dffb65
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions LRHook/LRHookFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ BOOL WINAPI HookCreateProcessA(
_Out_ LPPROCESS_INFORMATION lpProcessInformation
)
{
//MessageBoxA(NULL, lpCommandLine, "HookCreateProcessA", NULL);
MessageBoxA(NULL, lpCommandLine, "HookCreateProcessA", NULL);
return DetourCreateProcessWithDllExA(
lpApplicationName,
lpCommandLine,
Expand Down Expand Up @@ -462,7 +462,22 @@ BOOL WINAPI HookCreateProcessW(
_Out_ LPPROCESS_INFORMATION lpProcessInformation
)
{
//MessageBoxW(NULL, lpApplicationName, TEXT("HookCreateProcessW"), NULL);
//MessageBoxW(NULL, lpCommandLine, TEXT("HookCreateProcessW"), NULL);
if (lpCommandLine && wcsstr(lpCommandLine, L"BlackXchg.aes") != NULL)
{
return OriginalCreateProcessW(
lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
lpStartupInfo,
lpProcessInformation
);
}
return DetourCreateProcessWithDllExW(
lpApplicationName,
lpCommandLine,
Expand Down

0 comments on commit 5dffb65

Please sign in to comment.