mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Fix C89 issues and avoid usage of ZeroMemory - is just memset 0
This commit is contained in:
parent
d2d4e11169
commit
b8d27362e4
@ -644,16 +644,17 @@ enum frontend_fork win32_fork_mode;
|
|||||||
|
|
||||||
static void frontend_win32_respawn(char *s, size_t len)
|
static void frontend_win32_respawn(char *s, size_t len)
|
||||||
{
|
{
|
||||||
if (win32_fork_mode != FRONTEND_FORK_RESTART)
|
|
||||||
return;
|
|
||||||
STARTUPINFO si;
|
STARTUPINFO si;
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
|
|
||||||
ZeroMemory( &si, sizeof(si) );
|
|
||||||
si.cb = sizeof(si);
|
|
||||||
ZeroMemory( &pi, sizeof(pi) );
|
|
||||||
|
|
||||||
char executable_path[PATH_MAX_LENGTH] = {0};
|
char executable_path[PATH_MAX_LENGTH] = {0};
|
||||||
|
|
||||||
|
if (win32_fork_mode != FRONTEND_FORK_RESTART)
|
||||||
|
return;
|
||||||
|
|
||||||
|
memset(&si, 0, sizeof(si));
|
||||||
|
si.cb = sizeof(si);
|
||||||
|
memset(&pi, 0, sizeof(pi));
|
||||||
|
|
||||||
fill_pathname_application_path(executable_path,
|
fill_pathname_application_path(executable_path,
|
||||||
sizeof(executable_path));
|
sizeof(executable_path));
|
||||||
path_set(RARCH_PATH_CORE, executable_path);
|
path_set(RARCH_PATH_CORE, executable_path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user