use new plug-in callbacks to avoid /NOUNLOAD
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5841 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e59407720a
commit
70f14a824c
6 changed files with 58 additions and 53 deletions
|
@ -237,6 +237,11 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static UINT_PTR PluginCallback(enum NSPIM msg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __declspec(dllexport) Create(HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra)
|
||||
{
|
||||
HWND hwPlacementRect;
|
||||
|
@ -244,6 +249,8 @@ void __declspec(dllexport) Create(HWND hwndParent, int string_size, char *variab
|
|||
|
||||
EXDLL_INIT();
|
||||
|
||||
extra->RegisterPluginCallback(g_hInstance, PluginCallback);
|
||||
|
||||
g_dialog.hwParent = hwndParent;
|
||||
g_pluginParms = extra;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue