Skip to content

Commit

Permalink
don't use W functions
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Sep 28, 2024
1 parent 40464b1 commit 7175939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)

verhelp_init();

if (GetEnvironmentVariableW(L"cnc_ddraw_config_init", NULL, 0))
if (GetEnvironmentVariable("cnc_ddraw_config_init", NULL, 0))
{
cfg_load();
return TRUE;
Expand Down Expand Up @@ -133,7 +133,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
}
case DLL_PROCESS_DETACH:
{
if (GetEnvironmentVariableW(L"cnc_ddraw_config_init", NULL, 0))
if (GetEnvironmentVariable("cnc_ddraw_config_init", NULL, 0))
return TRUE;

TRACE("cnc-ddraw DLL_PROCESS_DETACH\n");
Expand Down

0 comments on commit 7175939

Please sign in to comment.