From 92a37449824399e13c80c73b16d895dcd4208a43 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Thu, 16 Apr 2009 14:46:31 +0000 Subject: [PATCH] - 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 --- reactos/dll/ntdll/ldr/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/ntdll/ldr/utils.c b/reactos/dll/ntdll/ldr/utils.c index 9ebcbd73021..c7e161505b1 100644 --- a/reactos/dll/ntdll/ldr/utils.c +++ b/reactos/dll/ntdll/ldr/utils.c @@ -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++)