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

This commit is contained in:
Timo Kreuzer
2023-09-17 10:40:19 +03:00
parent 26a64324e7
commit 8650eac76c
+2 -1
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);
}