Author: tfaber
Date: Wed Feb 22 11:31:04 2012
New Revision: 55804
URL:
http://svn.reactos.org/svn/reactos?rev=55804&view=rev
Log:
[SMSS2]
- Fix an uninitialized variable usage, CID 15345
- Fix an incorrect sizeof usage, CID 15317
Modified:
trunk/reactos/base/system/smss2/sminit.c
trunk/reactos/base/system/smss2/smsubsys.c
Modified: trunk/reactos/base/system/smss2/sminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss2/sminit.c…
==============================================================================
--- trunk/reactos/base/system/smss2/sminit.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss2/sminit.c [iso-8859-1] Wed Feb 22 11:31:04 2012
@@ -1977,7 +1977,7 @@
NTAPI
SmpProcessFileRenames(VOID)
{
- BOOLEAN OldState, HavePrivilege;
+ BOOLEAN OldState, HavePrivilege = FALSE;
NTSTATUS Status;
HANDLE FileHandle, OtherFileHandle;
FILE_INFORMATION_CLASS InformationClass;
Modified: trunk/reactos/base/system/smss2/smsubsys.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss2/smsubsys…
==============================================================================
--- trunk/reactos/base/system/smss2/smsubsys.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss2/smsubsys.c [iso-8859-1] Wed Feb 22 11:31:04 2012
@@ -317,7 +317,7 @@
/* This is the POSIX or OS/2 subsystem process, copy its information */
RtlCopyMemory(&CreateSession->ProcessInfo,
&ProcessInformation,
- sizeof(&CreateSession->ProcessInfo));
+ sizeof(CreateSession->ProcessInfo));
/* Not sure these field mean what I think they do -- but clear them */
*(PULONGLONG)&CreateSession->ClientId = 0;