Author: dchapyshev
Date: Fri Jul 17 19:53:37 2009
New Revision: 42006
URL:
http://svn.reactos.org/svn/reactos?rev=42006&view=rev
Log:
- Remove unneeded check and cycle
Modified:
trunk/reactos/dll/win32/kernel32/misc/ldr.c
Modified: trunk/reactos/dll/win32/kernel32/misc/ldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/ld…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] Fri Jul 17 19:53:37 2009
@@ -335,7 +335,7 @@
if (!NT_SUCCESS(Status))
{
- SetLastError( RtlNtStatusToDosError( Status ) );
+ SetLastErrorByStatus(Status);
fnExp = NULL;
}
@@ -388,10 +388,8 @@
DWORD dwExitCode
)
{
- if ( FreeLibrary(hLibModule) )
- ExitThread(dwExitCode);
- for (;;)
- ;
+ FreeLibrary(hLibModule);
+ ExitThread(dwExitCode);
}