idx not dataHandle
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1993 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
bc10503375
commit
4cea6a7811
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ char* Plugins::GetPluginDll(int uninst, char** command, int* dataHandle)
|
||||||
int v = m_commands.defines.idx2pos(idx);
|
int v = m_commands.defines.idx2pos(idx);
|
||||||
if (v < 0) return 0;
|
if (v < 0) return 0;
|
||||||
strcpy(*command, m_commands.defines.get() + v);
|
strcpy(*command, m_commands.defines.get() + v);
|
||||||
if (uninst) *dataHandle = ((int*)m_uninstDataHandles.get())[*dataHandle];
|
if (uninst) *dataHandle = ((int*)m_uninstDataHandles.get())[idx];
|
||||||
else *dataHandle = ((int*)m_dataHandles.get())[*dataHandle];
|
else *dataHandle = ((int*)m_dataHandles.get())[idx];
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue