projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cae70
)
- Remove unneeded check and cycle
author
Dmitry Chapyshev
<dmitry@reactos.org>
Fri, 17 Jul 2009 17:53:37 +0000
(17:53 +0000)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/kernel32/misc/ldr.c
b/reactos/dll/win32/kernel32/misc/ldr.c
index
275641f
..
9fba958
100644
(file)
--- a/
reactos/dll/win32/kernel32/misc/ldr.c
+++ b/
reactos/dll/win32/kernel32/misc/ldr.c
@@
-335,7
+335,7
@@
GetProcAddress( HMODULE hModule, LPCSTR lpProcName )
if (!NT_SUCCESS(Status))
{
- SetLastError
( RtlNtStatusToDosError( Status )
);
+ SetLastError
ByStatus(Status
);
fnExp = NULL;
}
@@
-388,10
+388,8
@@
FreeLibraryAndExitThread (
DWORD dwExitCode
)
{
- if ( FreeLibrary(hLibModule) )
- ExitThread(dwExitCode);
- for (;;)
- ;
+ FreeLibrary(hLibModule);
+ ExitThread(dwExitCode);
}