mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 00:31:27 +00:00
[SMSS2]
- Fix an uninitialized variable usage, CID 15345 - Fix an incorrect sizeof usage, CID 15317 svn path=/trunk/; revision=55804
This commit is contained in:
parent
0348878822
commit
2541f45e51
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue