mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[USER32] RegisterClipboardFormatA(): Enable a SetLastError() (#1612)
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
b8013fce52
commit
7804cf035a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user