[WIN32K] Do not try to free a unicode string that is an int-resource

This commit is contained in:
Timo Kreuzer 2023-09-09 10:41:27 +03:00
parent 26a64324e7
commit 8650eac76c

View file

@ -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);
}