mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user