[ros-diffs] [dchapyshev] 42006: - Remove unneeded check and cycle

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Fri Jul 17 19:53:37 CEST 2009


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/ldr.c?rev=42006&r1=42005&r2=42006&view=diff
==============================================================================
--- 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);
 }
 
 



More information about the Ros-diffs mailing list