- Fix an uninitialized variable usage, CID 15345
- Fix an incorrect sizeof usage, CID 15317

svn path=/trunk/; revision=55804
This commit is contained in:
Thomas Faber 2012-02-22 11:31:04 +00:00
parent 0348878822
commit 2541f45e51
2 changed files with 2 additions and 2 deletions

View file

@ -1977,7 +1977,7 @@ NTSTATUS
NTAPI
SmpProcessFileRenames(VOID)
{
BOOLEAN OldState, HavePrivilege;
BOOLEAN OldState, HavePrivilege = FALSE;
NTSTATUS Status;
HANDLE FileHandle, OtherFileHandle;
FILE_INFORMATION_CLASS InformationClass;

View file

@ -317,7 +317,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
/* 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;