mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[WIN32K] Do not try to free a unicode string that is an int-resource
This commit is contained in:
@@ -1665,7 +1665,8 @@ Exit:
|
||||
/* Additional cleanup on failure */
|
||||
if (bResult == FALSE)
|
||||
{
|
||||
if (ustrRsrc.Buffer != NULL)
|
||||
if ((ustrRsrc.Buffer != NULL) &&
|
||||
!IS_INTRESOURCE(ustrRsrc.Buffer))
|
||||
{
|
||||
ExFreePoolWithTag(ustrRsrc.Buffer, TAG_STRING);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user