Replace RtlNtStatusToDosError(STATUS_NO_MEMORY) with ERROR_OUTOFMEMORY.
authorFilip Navara <filip.navara@gmail.com>
Mon, 12 Dec 2005 20:25:02 +0000 (20:25 +0000)
committerFilip Navara <filip.navara@gmail.com>
Mon, 12 Dec 2005 20:25:02 +0000 (20:25 +0000)
svn path=/trunk/; revision=20112

reactos/lib/user32/windows/class.c

index 935286c..423b74c 100644 (file)
@@ -41,7 +41,7 @@ static BOOL GetClassInfoExCommon(
 
         if ( !str )
         {
 
         if ( !str )
         {
-          SetLastError (RtlNtStatusToDosError(STATUS_NO_MEMORY));
+          SetLastError (ERROR_OUTOFMEMORY);
           return FALSE;
         }
     }
           return FALSE;
         }
     }
@@ -69,7 +69,7 @@ static BOOL GetClassInfoExCommon(
   str2.Buffer = (PWSTR)HEAP_alloc ( str2.MaximumLength * sizeof(WCHAR) );
   if ( !str2.Buffer )
   {
   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;
     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 )
   {
   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 );
     HEAP_free ( str2.Buffer );
     if ( !IS_ATOM(str) )
       HEAP_free ( str );