[USER32] RegisterClipboardFormatA(): Enable a SetLastError() (#1612)

This commit is contained in:
Serge Gautherie 2019-06-05 18:15:02 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent b8013fce52
commit 7804cf035a

View 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;
}