diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index a1d6d8a5..4cd95d21 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -916,7 +916,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) char *buf1=GetStringFromParm(-0x10); char *buf0=GetStringFromParm(0x01); - if (parm3) + if (parm4) h=GetModuleHandle(buf1); if (!h) h=LoadLibrary(buf1); diff --git a/Source/script.cpp b/Source/script.cpp index 425bc3c3..5a8d37c3 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5482,6 +5482,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ent.offsets[1]=add_string(funcname); ent.offsets[2]=0; ent.offsets[3]=nounload|build_plugin_unload; + ent.offsets[4]=1; ret=add_entry(&ent); if (ret != PS_OK) { return ret;