- Necessary to trim a path to dll (for example: path/name.dll-> name.dll). It fixes an bug with search dlls if dll it is located in a folder with the program

svn path=/trunk/; revision=40544
This commit is contained in:
Dmitry Chapyshev 2009-04-16 14:46:31 +00:00
parent ff346bf2bd
commit 92a3744982

View file

@ -882,7 +882,7 @@ LdrFindEntryForName(PUNICODE_STRING Name,
return(STATUS_SUCCESS);
}
LdrAdjustDllName (&AdjustedName, Name, FALSE);
LdrAdjustDllName (&AdjustedName, Name, TRUE);
ContainsPath = (AdjustedName.Length >= 2 * sizeof(WCHAR) && L':' == AdjustedName.Buffer[1]);
for (i = 0; ! ContainsPath && i < AdjustedName.Length / sizeof(WCHAR); i++)