Author: tfaber
Date: Thu Apr 27 00:23:04 2017
New Revision: 74418
URL:
http://svn.reactos.org/svn/reactos?rev=74418&view=rev
Log:
[EVENTVWR]
- Avoid two cases of uninitialized variable use in GetEventUserName. Based on a patch by
Víctor Martínez Calvo. CID 1401250
CORE-12798 #resolve
Modified:
trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
Modified: trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] Thu Apr 27
00:23:04 2017
@@ -1271,7 +1271,7 @@
SID_NAME_USE peUse;
DWORD cchName = ARRAYSIZE(szName);
DWORD cchDomain = ARRAYSIZE(szDomain);
- BOOL Success;
+ BOOL Success = FALSE;
/* Point to the SID */
pCurrentSid = (PSID)((LPBYTE)pelr + pelr->UserSidOffset);