- Fix invalid errors about "system DLL kernel32.dll was relocated in memory". This reverts my previous fix suggested by rafalh and puts a better explanation there in comments.

svn path=/trunk/; revision=54629
This commit is contained in:
Aleksey Bragin 2011-12-09 21:43:03 +00:00
parent a21d3b9a41
commit f9533e5eba

View file

@ -1397,8 +1397,8 @@ SkipCheck:
}
}
/* Check if this was a non-relocatable DLL or a known dll */
if (!RelocatableDll || KnownDll)
/* Known DLLs are not allowed to be relocated */
if (KnownDll && !RelocatableDll)
{
/* Setup for hard error */
HardErrorParameters[0] = (ULONG_PTR)&IllegalDll;