Skip to content

Commit

Permalink
Fix compilation for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 17, 2024
1 parent 738bd40 commit f062e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/kong.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void execute_sync(const char* command) {
memset(&startupInfo, 0, sizeof(startupInfo));
memset(&processInfo, 0, sizeof(processInfo));
startupInfo.cb = sizeof(startupInfo);
CreateProcessA(nullptr, (char*)command, nullptr, nullptr, FALSE, CREATE_DEFAULT_ERROR_MODE, "PATH=%PATH%;.\\cygwin\\bin\0", nullptr, &startupInfo, &processInfo);
CreateProcessA(NULL, (char*)command, NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE, "PATH=%PATH%;.\\cygwin\\bin\0", NULL, &startupInfo, &processInfo);
WaitForSingleObject(processInfo.hProcess, INFINITE);
CloseHandle(processInfo.hProcess);
CloseHandle(processInfo.hThread);
Expand Down

0 comments on commit f062e12

Please sign in to comment.