From 5a637c03db4131f8632acdeee5ec6ed286e7e879 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Tue, 23 Sep 2008 09:28:44 +0000 Subject: [PATCH] Count the end of the szApplicationName in the right units. (coverity 551). svn path=/trunk/; revision=36422 --- reactos/base/system/winlogon/screensaver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/base/system/winlogon/screensaver.c b/reactos/base/system/winlogon/screensaver.c index 43737dbdb01..635651b5a6c 100644 --- a/reactos/base/system/winlogon/screensaver.c +++ b/reactos/base/system/winlogon/screensaver.c @@ -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;