Integrate C++11 branch into 5_1-new
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
void Win32RestartProgram()
|
||||
{
|
||||
TCHAR szFullAppPath[MAX_PATH];
|
||||
GetModuleFileName(NULL, szFullAppPath, MAX_PATH);
|
||||
GetModuleFileName(nullptr, szFullAppPath, MAX_PATH);
|
||||
|
||||
// Relaunch
|
||||
PROCESS_INFORMATION pi;
|
||||
STARTUPINFO si;
|
||||
ZeroMemory( &si, sizeof(si) );
|
||||
CreateProcess(
|
||||
NULL, // pointer to name of executable module
|
||||
nullptr, // pointer to name of executable module
|
||||
szFullAppPath, // pointer to command line string
|
||||
NULL, // process security attributes
|
||||
NULL, // thread security attributes
|
||||
nullptr, // process security attributes
|
||||
nullptr, // thread security attributes
|
||||
false, // handle inheritance flag
|
||||
0, // creation flags
|
||||
NULL, // pointer to new environment block
|
||||
NULL, // pointer to current directory name
|
||||
nullptr, // pointer to new environment block
|
||||
nullptr, // pointer to current directory name
|
||||
&si, // pointer to STARTUPINFO
|
||||
&pi // pointer to PROCESS_INFORMATION
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user