[ros-diffs] [arty] 36422: Count the end of the szApplicationName in the right units. (coverity 551).
arty at svn.reactos.org
arty at svn.reactos.org
Tue Sep 23 11:28:44 CEST 2008
Author: arty
Date: Tue Sep 23 04:28:44 2008
New Revision: 36422
URL: http://svn.reactos.org/svn/reactos?rev=36422&view=rev
Log:
Count the end of the szApplicationName in the right units. (coverity 551).
Modified:
trunk/reactos/base/system/winlogon/screensaver.c
Modified: trunk/reactos/base/system/winlogon/screensaver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/screensaver.c?rev=36422&r1=36421&r2=36422&view=diff
==============================================================================
--- trunk/reactos/base/system/winlogon/screensaver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/winlogon/screensaver.c [iso-8859-1] Tue Sep 23 04:28:44 2008
@@ -243,7 +243,7 @@
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;
More information about the Ros-diffs
mailing list