diff --git a/win32ss/user/ntuser/cursoricon.c b/win32ss/user/ntuser/cursoricon.c index 80a15a39b09..bb72ffcdfba 100644 --- a/win32ss/user/ntuser/cursoricon.c +++ b/win32ss/user/ntuser/cursoricon.c @@ -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); }