mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
[WIN32SS]
Don't dereference an object that wasn't referenced CID #1102086 svn path=/trunk/; revision=62634
This commit is contained in:
parent
849f7cf1d1
commit
8e01ed0bd8
1 changed files with 3 additions and 3 deletions
|
@ -304,10 +304,10 @@ IntAddSynthesizedFormats(PWINSTATION_OBJECT pWinStaObj)
|
||||||
pMemObj->cbData = sizeof(LCID);
|
pMemObj->cbData = sizeof(LCID);
|
||||||
*((LCID*)pMemObj->Data) = NtCurrentTeb()->CurrentLocale;
|
*((LCID*)pMemObj->Data) = NtCurrentTeb()->CurrentLocale;
|
||||||
IntAddFormatedData(pWinStaObj, CF_LOCALE, hMem, TRUE, TRUE);
|
IntAddFormatedData(pWinStaObj, CF_LOCALE, hMem, TRUE, TRUE);
|
||||||
}
|
|
||||||
|
|
||||||
/* Release the extra reference (UserCreateObject added 2 references) */
|
/* Release the extra reference (UserCreateObject added 2 references) */
|
||||||
UserDereferenceObject(pMemObj);
|
UserDereferenceObject(pMemObj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add CF_TEXT. Note: it is synthesized in user32.dll */
|
/* Add CF_TEXT. Note: it is synthesized in user32.dll */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue