- Remove unneeded check and cycle

svn path=/trunk/; revision=42006
This commit is contained in:
Dmitry Chapyshev 2009-07-17 17:53:37 +00:00
parent 91cae70e59
commit 1f53c74091

View file

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