Author: fireball
Date: Tue May 10 16:05:59 2011
New Revision: 51668
URL:
http://svn.reactos.org/svn/reactos?rev=51668&view=rev
Log:
[NTDLL]
- Result of LdrQueryImageFileExecutionOptions() shouldn't be used as a return status.
Always reset it to STATUS_SUCCESS whatever the function returns.
See bug #6231 for more details.
Modified:
trunk/reactos/dll/ntdll/ldr/ldrinit.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrinit.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] Tue May 10 16:05:59 2011
@@ -591,6 +591,9 @@
sizeof(ULONG),
NULL);
if (!NT_SUCCESS(Status)) BreakOnDllLoad = 0;
+
+ /* Reset status back to STATUS_SUCCESS */
+ Status = STATUS_SUCCESS;
}
/* Break if aksed */