https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7804cf035a511f50b7ef82e306bcf89001d2d83e

commit 7804cf035a511f50b7ef82e306bcf89001d2d83e
Author:     Serge Gautherie <[email protected]>
AuthorDate: Wed Jun 5 18:15:02 2019 +0200
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Wed Jun 5 18:15:02 2019 +0200

    [USER32] RegisterClipboardFormatA(): Enable a SetLastError() (#1612)
---
 win32ss/user/user32/windows/clipboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32ss/user/user32/windows/clipboard.c 
b/win32ss/user/user32/windows/clipboard.c
index d7cfb79237a..29e47d92669 100644
--- a/win32ss/user/user32/windows/clipboard.c
+++ b/win32ss/user/user32/windows/clipboard.c
@@ -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;
     }
 

Reply via email to