Author: tfaber
Date: Fri Jun 9 21:36:15 2017
New Revision: 74977
URL:
http://svn.reactos.org/svn/reactos?rev=74977&view=rev
Log:
[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
Modified:
trunk/reactos/win32ss/user/ntuser/clipboard.c
Modified: trunk/reactos/win32ss/user/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/clipbo…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] Fri Jun 9 21:36:15 2017
@@ -709,7 +709,7 @@
UserEnterShared();
/* If the format is built-in we fail */
- if (fmt < 0xc000)
+ if (fmt < 0xc000 || fmt > 0xffff)
{
/* Registetrated formats are >= 0xc000 */
goto cleanup;