Skip to content

Commit

Permalink
Attempt to fix Windows path resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Jul 26, 2024
1 parent 94e41fb commit 3abdb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cs2djitwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main(int argc, char* argv[])
dedicatedFile = malloc(dedicatedLen * sizeof(wchar_t));
if (dedicatedFile == NULL)
return 1;
swprintf(dedicatedFile, dedicatedLen, L"%s%s", currentDir ? currentDir : L"", L"cs2d_dedicated.exe");
swprintf(dedicatedFile, dedicatedLen, L"%ls%ls", currentDir ? currentDir : L"", L"cs2d_dedicated.exe");

/* Setup Startup Info */
memset(&startupInfo, 0, sizeof(STARTUPINFOW));
Expand All @@ -122,7 +122,7 @@ int main(int argc, char* argv[])
startupInfo.hStdError = GetStdHandle(STD_ERROR_HANDLE);

/* Start process */
fwprintf(stderr, L"Launching cs2d_dedicated.exe with path: %s\n", dedicatedFile);
fprintf(stderr, "Launching cs2d_dedicated.exe with path: %ls\n", dedicatedFile);
if (CreateProcessW(
dedicatedFile, /* lpApplicationName */
GetCommandLineW(), /* lpCommandLine */
Expand Down

0 comments on commit 3abdb50

Please sign in to comment.