mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Count the end of the szApplicationName in the right units. (coverity 551).
svn path=/trunk/; revision=36422
This commit is contained in:
@@ -243,7 +243,7 @@ StartScreenSaver(
|
||||
HKEY hKey = NULL;
|
||||
WCHAR szApplicationName[MAX_PATH];
|
||||
WCHAR szCommandLine[MAX_PATH + 3];
|
||||
DWORD bufferSize = sizeof(szApplicationName)- 1;
|
||||
DWORD bufferSize = (sizeof(szApplicationName) / sizeof(WCHAR)) - 1;
|
||||
DWORD dwType;
|
||||
STARTUPINFOW StartupInfo;
|
||||
PROCESS_INFORMATION ProcessInformation;
|
||||
|
||||
Reference in New Issue
Block a user