fixed bug #1102255 - system.nsi example crash
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3884 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d91e1e68f3
commit
da35c93efa
1 changed files with 8 additions and 6 deletions
|
@ -131,17 +131,19 @@ Function systemMessageBox
|
||||||
StrCpy $1 $2
|
StrCpy $1 $2
|
||||||
IntCmp $1 0 0 smbnext smbnext
|
IntCmp $1 0 0 smbnext smbnext
|
||||||
|
|
||||||
|
; Get module handle
|
||||||
|
System::Call '${sysGetModuleHandle}($2) .r1'
|
||||||
|
IntCmp $1 0 loadlib libnotloaded libnotloaded
|
||||||
|
|
||||||
|
loadlib:
|
||||||
; Load module and get handle
|
; Load module and get handle
|
||||||
System::Call '${sysLoadLibrary}($2) .r1'
|
System::Call '${sysLoadLibrary}($2) .r1'
|
||||||
IntCmp $1 0 0 smbnext smbnext
|
IntCmp $1 0 0 smbnext smbnext
|
||||||
|
|
||||||
; Get module handle. This may look stupid (to call GetModuleHandle in case
|
libnotloaded:
|
||||||
; when the LoadLibrary doesn't works, but LoadLibrary couldn't return
|
; Indicate that LoadLibrary wasn't used
|
||||||
; a handle to starting process (for 'i 0').
|
StrCpy $2 1
|
||||||
System::Call '${sysGetModuleHandle}($2) .r1'
|
|
||||||
|
|
||||||
; Indicate that LoadLibrary wasn't used
|
|
||||||
StrCpy $2 1
|
|
||||||
smbnext:
|
smbnext:
|
||||||
; Create MSGBOXPARAMS structure
|
; Create MSGBOXPARAMS structure
|
||||||
System::Call '*${stMSGBOXPARAMS}(, $HWNDPARENT, r1, r3, r4, "$5|${MB_USERICON}", $6, _) .r0'
|
System::Call '*${stMSGBOXPARAMS}(, $HWNDPARENT, r1, r3, r4, "$5|${MB_USERICON}", $6, _) .r0'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue