RegDLL now sets the current directory to the DLL directory (Patch #646306 )

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1872 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-12-03 20:33:17 +00:00
parent 1403530beb
commit e6af406ab2
2 changed files with 20 additions and 27 deletions

View file

@ -937,6 +937,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
char *buf0=process_string_fromparm_tobuf(0x00);
char *buf1=process_string_fromparm_tobuf(0x11);
// suggested by Kevin Gadd (janusfury)
lstrcpy(buf3, buf0);
trimslashtoend(buf3);
SetCurrentDirectory(buf3);
h=LoadLibrary(buf0);
if (h)
{