diff --git a/Contrib/System/System.html b/Contrib/System/System.html index 26d05757..57463e5f 100644 --- a/Contrib/System/System.html +++ b/Contrib/System/System.html @@ -491,12 +491,12 @@ System::Free $0
 System::Call 'user32::MessageBox(p $HWNDPARENT, t "NSIS System Plug-in", t "Test", i 0)'
-System::Call '"$InstDir\MyLibrary.dll"::MyFunction(i 42)'
+System::Call '"$SysDir\MyLibrary.dll"::MyFunction(i 42)'
 
 System::Call "kernel32::GetModuleHandle(t 'user32.dll') p .s"
 System::Call "kernel32::GetProcAddress(p s, m 'MessageBoxA') p .r0"
-System::Call "::$0(p $HWNDPARENT, t 'GetProcAddress test', t 'NSIS System Plug-in', i 0)"
+System::Call "::$0(p $HWNDPARENT, m 'GetProcAddress test', m 'NSIS System Plug-in', i 0)"
 
 System::Get "user32::MessageBox(p $HWNDPARENT, t 'This is a default text', t 'Default', i 0)"
@@ -569,7 +569,10 @@ end:
 
 InitPluginsDir
 File "/oname=$PLUGINSDIR\MyDLL.dll" MyDLL.dll
-System::Call "MyDLL::MyFunc(i 5) ? u"
+System::Call 'KERNEL32::AddDllDirectory(w "$PLUGINSDIR")'
+System::Call 'KERNEL32::LoadLibrary(t "$PLUGINSDIR\MyDLL.dll")p.r1'
+System::Call 'MyDLL::MyFunc(i 5) ? u'
+System::Call 'KERNEL32::FreeLibrary(pr1)'
 Delete $PLUGINSDIR\MyDLL.dll
 
@@ -588,6 +591,7 @@ loop:
 	Goto loop
 done:
 System::Free $R0
+DetailPrint "EnumChildWindows returned $0"
 
 System::Get '(m.r1)ir2r0 ?2' ; v2 syntax