[USER32] RegisterClipboardFormatA(): Enable a SetLastError() (#1612)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Wed, 5 Jun 2019 16:15:02 +0000 (18:15 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Wed, 5 Jun 2019 16:15:02 +0000 (18:15 +0200)
win32ss/user/user32/windows/clipboard.c

index d7cfb79..29e47d9 100644 (file)
@@ -114,7 +114,7 @@ RegisterClipboardFormatA(LPCSTR lpszFormat)
 
     if (!RtlCreateUnicodeStringFromAsciiz(&usFormat, lpszFormat))
     {
-        // FIXME: Shouldn't we 'SetLastError(ERROR_NOT_ENOUGH_MEMORY);'?
+        SetLastError(ERROR_NOT_ENOUGH_MEMORY);
         return 0;
     }