- 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.

svn path=/trunk/; revision=51668
This commit is contained in:
Aleksey Bragin 2011-05-10 16:05:59 +00:00
parent 037bb97747
commit a02b3fc01f

View file

@ -591,6 +591,9 @@ LdrpRunInitializeRoutines(IN PCONTEXT Context OPTIONAL)
sizeof(ULONG),
NULL);
if (!NT_SUCCESS(Status)) BreakOnDllLoad = 0;
/* Reset status back to STATUS_SUCCESS */
Status = STATUS_SUCCESS;
}
/* Break if aksed */