From 1fd1ebd07e42c8ec428ee71be26e1dfeecc03d61 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 4 Dec 2002 21:11:24 +0000 Subject: [PATCH] Set the current directory back to the exe dir git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1880 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index bfae6e2e..b92bf1b7 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -938,7 +938,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) char *buf1=process_string_fromparm_tobuf(0x11); // suggested by Kevin Gadd (janusfury) - lstrcpy(buf3, buf0); + mystrcpy(buf3, buf0); trimslashtoend(buf3); SetCurrentDirectory(buf3); @@ -980,6 +980,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) update_status_text_from_lang(LANG_COULDNOTLOAD,buf0); log_printf2("Error registering DLL: Could not load %s",buf0); } + SetCurrentDirectory(state_exe_directory); OleUninitialize(); } else