Skip to content

Commit

Permalink
Merge pull request #166 from jss2a98aj/cherry-pick-4.4-99280
Browse files Browse the repository at this point in the history
[4.4 backport] Fix 32-bit Windows build
Version bump test: #minor
  • Loading branch information
jss2a98aj authored Nov 30, 2024
2 parents 53c8a12 + a0be00f commit e6f0333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ Dictionary OS_Windows::execute_with_pipe(const String &p_path, const List<String
pi.si.StartupInfo.hStdOutput = pipe_out[1];
pi.si.StartupInfo.hStdError = pipe_err[1];

size_t attr_list_size = 0;
SIZE_T attr_list_size = 0;
InitializeProcThreadAttributeList(nullptr, 1, 0, &attr_list_size);
pi.si.lpAttributeList = (LPPROC_THREAD_ATTRIBUTE_LIST)alloca(attr_list_size);
if (!InitializeProcThreadAttributeList(pi.si.lpAttributeList, 1, 0, &attr_list_size)) {
Expand Down Expand Up @@ -946,7 +946,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
pi.si.StartupInfo.hStdError = pipe[1];
}

size_t attr_list_size = 0;
SIZE_T attr_list_size = 0;
InitializeProcThreadAttributeList(nullptr, 1, 0, &attr_list_size);
pi.si.lpAttributeList = (LPPROC_THREAD_ATTRIBUTE_LIST)alloca(attr_list_size);
if (!InitializeProcThreadAttributeList(pi.si.lpAttributeList, 1, 0, &attr_list_size)) {
Expand Down

0 comments on commit e6f0333

Please sign in to comment.