mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Correct uninitialized warnings for Status in two places.
svn path=/trunk/; revision=11762
This commit is contained in:
parent
27e4ae606f
commit
3adacc20ec
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ RTL_ATOM FASTCALL
|
||||||
IntAddAtom(LPWSTR AtomName)
|
IntAddAtom(LPWSTR AtomName)
|
||||||
{
|
{
|
||||||
PWINSTATION_OBJECT WinStaObject;
|
PWINSTATION_OBJECT WinStaObject;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
RTL_ATOM Atom;
|
RTL_ATOM Atom;
|
||||||
|
|
||||||
if (PsGetWin32Thread()->Desktop == NULL)
|
if (PsGetWin32Thread()->Desktop == NULL)
|
||||||
|
@ -43,7 +43,7 @@ IntAddAtom(LPWSTR AtomName)
|
||||||
}
|
}
|
||||||
WinStaObject = PsGetWin32Thread()->Desktop->WindowStation;
|
WinStaObject = PsGetWin32Thread()->Desktop->WindowStation;
|
||||||
Status = RtlAddAtomToAtomTable(WinStaObject->AtomTable,
|
Status = RtlAddAtomToAtomTable(WinStaObject->AtomTable,
|
||||||
AtomName, &Atom);
|
AtomName, &Atom);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
|
@ -56,7 +56,7 @@ ULONG FASTCALL
|
||||||
IntGetAtomName(RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG nSize)
|
IntGetAtomName(RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG nSize)
|
||||||
{
|
{
|
||||||
PWINSTATION_OBJECT WinStaObject;
|
PWINSTATION_OBJECT WinStaObject;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
ULONG Size = nSize;
|
ULONG Size = nSize;
|
||||||
|
|
||||||
if (PsGetWin32Thread()->Desktop == NULL)
|
if (PsGetWin32Thread()->Desktop == NULL)
|
||||||
|
|
Loading…
Reference in a new issue