[USER32] Fix GetWindowTextLength() blocking call using the same technique as in GetWi...
[reactos.git] / win32ss / user / user32 / windows / clipboard.c
index 6e02427..66a4217 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * PROJECT:         ReactOS user32.dll
- * FILE:            lib/user32/windows/clipboard.c
+ * FILE:            win32ss/user/user32/windows/clipboard.c
  * PURPOSE:         Input
  * PROGRAMMER:      Casper S. Hornstrup (chorns@users.sourceforge.net)
  *                  Pablo Borobia <pborobia@gmail.com>
@@ -9,19 +9,12 @@
  *
  */
 
-/* INCLUDES ******************************************************************/
-
 #include <user32.h>
 
 #define NDEBUG
 
-#include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(user32);
 
-#define QUERY_SIZE 0
-
-/* FUNCTIONS *****************************************************************/
-
 /*
  * @implemented
  */
@@ -39,6 +32,7 @@ UINT
 WINAPI
 EnumClipboardFormats(UINT format)
 {
+    SetLastError(NO_ERROR);
     return NtUserxEnumClipboardFormats(format);
 }
 
@@ -263,7 +257,7 @@ GetClipboardData(UINT uFormat)
             pData = pNewData;
         }
 
-        /* Save synthesized format in clibboard */
+        /* Save synthesized format in clipboard */
         if (pData)
         {
             HANDLE hMem;
@@ -296,7 +290,7 @@ SetClipboardData(UINT uFormat, HANDLE hMem)
     HANDLE hRet = NULL;
     SETCLIPBDATA scd = {FALSE, FALSE};
 
-    /* Check if this is delayed render */
+    /* Check if this is a delayed rendering */
     if (hMem == NULL)
         return NtUserSetClipboardData(uFormat, NULL, &scd);
 
@@ -308,7 +302,10 @@ SetClipboardData(UINT uFormat, HANDLE hMem)
     /* Meta files are probably checked for validity */
     else if (uFormat == CF_DSPMETAFILEPICT || uFormat == CF_METAFILEPICT ||
              uFormat == CF_DSPENHMETAFILE || uFormat == CF_ENHMETAFILE)
+    {
+        UNIMPLEMENTED;
         hRet = NULL; // not supported yet
+    }
     else
     {
         /* Some formats accept only global handles, other accept global handles or integer values */