[USER32] Fix GetWindowTextLength() blocking call using the same technique as in GetWi...
[reactos.git] / win32ss / user / user32 / windows / clipboard.c
index 28d31e3..66a4217 100644 (file)
@@ -9,17 +9,12 @@
  *
  */
 
-/* INCLUDES ******************************************************************/
-
 #include <user32.h>
 
 #define NDEBUG
 
-#include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(user32);
 
-/* FUNCTIONS *****************************************************************/
-
 /*
  * @implemented
  */
@@ -37,6 +32,7 @@ UINT
 WINAPI
 EnumClipboardFormats(UINT format)
 {
+    SetLastError(NO_ERROR);
     return NtUserxEnumClipboardFormats(format);
 }