- Remove unneeded check and cycle
authorDmitry Chapyshev <dmitry@reactos.org>
Fri, 17 Jul 2009 17:53:37 +0000 (17:53 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Fri, 17 Jul 2009 17:53:37 +0000 (17:53 +0000)
svn path=/trunk/; revision=42006

reactos/dll/win32/kernel32/misc/ldr.c

index 275641f..9fba958 100644 (file)
@@ -335,7 +335,7 @@ GetProcAddress( HMODULE hModule, LPCSTR lpProcName )
 
        if (!NT_SUCCESS(Status))
        {
-               SetLastError( RtlNtStatusToDosError( Status ) );
+               SetLastErrorByStatus(Status);
                fnExp = NULL;
        }
 
@@ -388,10 +388,8 @@ FreeLibraryAndExitThread (
        DWORD   dwExitCode
        )
 {
-       if ( FreeLibrary(hLibModule) )
-               ExitThread(dwExitCode);
-       for (;;)
-               ;
+    FreeLibrary(hLibModule);
+    ExitThread(dwExitCode);
 }