mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
always zero handle on return
ros now passes 87/89 advapi32_winetest registry tests bug report & patch by w3seek svn path=/trunk/; revision=22177
This commit is contained in:
parent
8410eccf06
commit
42de812e46
1 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ NtCreateKey(OUT PHANDLE KeyHandle,
|
|||
{
|
||||
_SEH_TRY
|
||||
{
|
||||
ProbeForWriteHandle(KeyHandle);
|
||||
ProbeAndZeroHandle(KeyHandle);
|
||||
if (Disposition != NULL)
|
||||
{
|
||||
ProbeForWriteUlong(Disposition);
|
||||
|
@ -1283,7 +1283,7 @@ NtOpenKey(OUT PHANDLE KeyHandle,
|
|||
{
|
||||
_SEH_TRY
|
||||
{
|
||||
ProbeForWriteHandle(KeyHandle);
|
||||
ProbeAndZeroHandle(KeyHandle);
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue