mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 21:25:05 +00:00
[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:
parent
630bbc5421
commit
3fd5666e63
|
@ -709,7 +709,7 @@ NtUserGetClipboardFormatName(UINT fmt, LPWSTR lpszFormatName, INT cchMaxCount)
|
||||||
UserEnterShared();
|
UserEnterShared();
|
||||||
|
|
||||||
/* If the format is built-in we fail */
|
/* If the format is built-in we fail */
|
||||||
if (fmt < 0xc000)
|
if (fmt < 0xc000 || fmt > 0xffff)
|
||||||
{
|
{
|
||||||
/* Registetrated formats are >= 0xc000 */
|
/* Registetrated formats are >= 0xc000 */
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
Loading…
Reference in a new issue