From bf0b38b9fdbf3a364f97e0e2b6a1245db4147ddf Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 12 Dec 2005 20:25:02 +0000 Subject: [PATCH] Replace RtlNtStatusToDosError(STATUS_NO_MEMORY) with ERROR_OUTOFMEMORY. svn path=/trunk/; revision=20112 --- reactos/lib/user32/windows/class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/user32/windows/class.c b/reactos/lib/user32/windows/class.c index 935286c5eeb..423b74cb1f6 100644 --- a/reactos/lib/user32/windows/class.c +++ b/reactos/lib/user32/windows/class.c @@ -41,7 +41,7 @@ static BOOL GetClassInfoExCommon( if ( !str ) { - SetLastError (RtlNtStatusToDosError(STATUS_NO_MEMORY)); + SetLastError (ERROR_OUTOFMEMORY); return FALSE; } } @@ -69,7 +69,7 @@ static BOOL GetClassInfoExCommon( str2.Buffer = (PWSTR)HEAP_alloc ( str2.MaximumLength * sizeof(WCHAR) ); if ( !str2.Buffer ) { - SetLastError (RtlNtStatusToDosError(STATUS_NO_MEMORY)); + SetLastError (ERROR_OUTOFMEMORY); if ( !IS_ATOM(str) ) HEAP_free ( str ); return FALSE; @@ -78,7 +78,7 @@ static BOOL GetClassInfoExCommon( str3.Buffer = (PWSTR)HEAP_alloc ( str3.MaximumLength * sizeof(WCHAR) ); if ( !str3.Buffer ) { - SetLastError (RtlNtStatusToDosError(STATUS_NO_MEMORY)); + SetLastError (ERROR_OUTOFMEMORY); HEAP_free ( str2.Buffer ); if ( !IS_ATOM(str) ) HEAP_free ( str );