Fix two warnings on MinGW

This commit is contained in:
ISSOtm
2026-04-14 21:56:12 +02:00
committed by Eldred Habert
parent dc52487d31
commit 81edc27b6e
3 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
error: Specified start position is greater than length of file "data.bin"
error: Specified start position (999) is greater than length of "data.bin" (123)
at incbin-start-bad.asm(3)
error: Specified start position is greater than length of file "data.bin"
error: Specified start position (999) is greater than length of "data.bin" (123)
at incbin-start-bad.asm(4)
Assembly aborted with 2 errors
+3 -2
View File
@@ -320,7 +320,7 @@ static char *execProg(char const *name, char * const *argv) {
nullptr,
errnum,
0,
(LPTSTR)&buf,
reinterpret_cast<LPTSTR>(&buf),
0,
nullptr
)
@@ -341,7 +341,8 @@ static char *execProg(char const *name, char * const *argv) {
STARTUPINFOA startupInfo;
GetStartupInfoA(&startupInfo);
STARTUPINFOA childStartupInfo = {sizeof(startupInfo)};
STARTUPINFOA childStartupInfo = {};
childStartupInfo.cb = sizeof(startupInfo);
PROCESS_INFORMATION child;
if (CreateProcessA(