Skip to content

Commit

Permalink
I should really learn to test before pushing commits :P
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioVilas committed May 5, 2021
1 parent 773690d commit a97e8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved __att
// Check if we're running inside rundll32.exe.
char pathname[MAX_PATH];
memset(pathname, 0, sizeof(pathname));
GetModuleFileNameA(hModule, pathname, sizeof(pathname));
GetModuleFileNameA(NULL, pathname, sizeof(pathname));
char *filename = PathFindFileNameA(pathname);
if (filename == NULL || filename[0] == 0 || stricmp(filename, "rundll32.exe") != 0) {

Expand Down

0 comments on commit a97e8e5

Please sign in to comment.