mirror of https://github.com/libsdl-org/SDL.git
Fixed warning C4701: potentially uninitialized local variable 'startup_info' used
This commit is contained in:
parent
19243092c6
commit
718845a33d
|
|
@ -216,14 +216,6 @@ bool SDL_SYS_CreateProcessWithProperties(SDL_Process *process, SDL_PropertiesID
|
||||||
}
|
}
|
||||||
process->internal = data;
|
process->internal = data;
|
||||||
|
|
||||||
if (!join_arguments(args, &createprocess_cmdline)) {
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!join_env(envp, &createprocess_env)) {
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
creation_flags = CREATE_UNICODE_ENVIRONMENT;
|
creation_flags = CREATE_UNICODE_ENVIRONMENT;
|
||||||
|
|
||||||
SDL_zero(startup_info);
|
SDL_zero(startup_info);
|
||||||
|
|
@ -238,6 +230,14 @@ bool SDL_SYS_CreateProcessWithProperties(SDL_Process *process, SDL_PropertiesID
|
||||||
security_attributes.bInheritHandle = TRUE;
|
security_attributes.bInheritHandle = TRUE;
|
||||||
security_attributes.lpSecurityDescriptor = NULL;
|
security_attributes.lpSecurityDescriptor = NULL;
|
||||||
|
|
||||||
|
if (!join_arguments(args, &createprocess_cmdline)) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!join_env(envp, &createprocess_env)) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
// Background processes don't have access to the terminal
|
// Background processes don't have access to the terminal
|
||||||
// This isn't necessary on Windows, but we keep the same behavior as the POSIX implementation.
|
// This isn't necessary on Windows, but we keep the same behavior as the POSIX implementation.
|
||||||
if (process->background) {
|
if (process->background) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue