[WIN32K:NTUSER]

- Fix fmt range check in NtUserGetClipboardFormatName (see Wine commit 4bdcf512). Fixes new test failures (and resulting debug spam) in user32_winetest:clipboard
CORE-13402 #resolve

svn path=/trunk/; revision=74977
This commit is contained in:
Thomas Faber 2017-06-09 21:36:15 +00:00
parent 630bbc5421
commit 3fd5666e63

View file

@ -709,7 +709,7 @@ NtUserGetClipboardFormatName(UINT fmt, LPWSTR lpszFormatName, INT cchMaxCount)
UserEnterShared();
/* If the format is built-in we fail */
if (fmt < 0xc000)
if (fmt < 0xc000 || fmt > 0xffff)
{
/* Registetrated formats are >= 0xc000 */
goto cleanup;