Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Oct 3, 2024
1 parent d7e76b7 commit 1536062
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,20 @@ int execute_shell_command(const char* const command) {
*/

#if defined(_UNICODE)
HMODULE module = GetModuleHandleW(L"ntdll.dll");
HMODULE module = GetModuleHandleA("ntdll.dll");
//HMODULE module = GetModuleHandleW(L"ntdll.dll");
#else
HMODULE module = GetModuleHandleA(NTDLL);
#endif

if (module == NULL) {
return -1;
}
/*

if (GetProcAddress(module, "wine_get_version") == NULL) {
return 0;
}
*/

return 1;

}
Expand Down

0 comments on commit 1536062

Please sign in to comment.