- 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 NTAPI
SmpProcessFileRenames(VOID) SmpProcessFileRenames(VOID)
{ {
BOOLEAN OldState, HavePrivilege; BOOLEAN OldState, HavePrivilege = FALSE;
NTSTATUS Status; NTSTATUS Status;
HANDLE FileHandle, OtherFileHandle; HANDLE FileHandle, OtherFileHandle;
FILE_INFORMATION_CLASS InformationClass; 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 */ /* This is the POSIX or OS/2 subsystem process, copy its information */
RtlCopyMemory(&CreateSession->ProcessInfo, RtlCopyMemory(&CreateSession->ProcessInfo,
&ProcessInformation, &ProcessInformation,
sizeof(&CreateSession->ProcessInfo)); sizeof(CreateSession->ProcessInfo));
/* Not sure these field mean what I think they do -- but clear them */ /* Not sure these field mean what I think they do -- but clear them */
*(PULONGLONG)&CreateSession->ClientId = 0; *(PULONGLONG)&CreateSession->ClientId = 0;