Author: dchapyshev Date: Thu Apr 16 18:46:31 2009 New Revision: 40544
URL: http://svn.reactos.org/svn/reactos?rev=40544&view=rev Log: - 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
Modified: trunk/reactos/dll/ntdll/ldr/utils.c
Modified: trunk/reactos/dll/ntdll/ldr/utils.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/utils.c?rev=4... ============================================================================== --- trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] (original) +++ trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] Thu Apr 16 18:46:31 2009 @@ -882,7 +882,7 @@ 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++)