mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[WIN32K]
- Avoid assigning a nonvolatile variable inside a try block. Spotted by Timo. CORE-8094 svn path=/trunk/; revision=62965
This commit is contained in:
parent
a21f22e98d
commit
b2231ae220
1 changed files with 4 additions and 4 deletions
|
@ -736,6 +736,9 @@ NtUserGetObjectInformation(
|
|||
}
|
||||
|
||||
Exit:
|
||||
if (Status == STATUS_SUCCESS && nLength < nDataSize)
|
||||
Status = STATUS_BUFFER_TOO_SMALL;
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
if (nLengthNeeded)
|
||||
|
@ -745,10 +748,7 @@ Exit:
|
|||
if (Status == STATUS_SUCCESS)
|
||||
{
|
||||
TRACE("Trying to copy data to caller (len = %lu, len needed = %lu)\n", nLength, nDataSize);
|
||||
if (nLength >= nDataSize)
|
||||
RtlCopyMemory(pvInformation, pvData, nDataSize);
|
||||
else
|
||||
Status = STATUS_BUFFER_TOO_SMALL;
|
||||
RtlCopyMemory(pvInformation, pvData, nDataSize);
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
|
|
Loading…
Reference in a new issue