Skip to content

Commit 233485b

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5caa2b3 commit 233485b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

installer.nsh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
; URLs in the license text are displayed as plain text, not clickable links.
55
!define MUI_PAGE_CUSTOMFUNCTION_SHOW DisableLicenseAutoUrl
66
Function DisableLicenseAutoUrl
7+
Push $0
78
; IDC_LICENSE (1000) is the RichEdit control on the MUI license page.
89
; EM_AUTOURLDETECT = 0x45B: wParam 0 disables auto-detection.
910
GetDlgItem $0 $HWNDPARENT 1000
10-
System::Call 'user32::SendMessage(i $0, i 0x45B, i 0, i 0)'
11+
${If} $0 != 0
12+
System::Call 'user32::SendMessage(i $0, i 0x45B, i 0, i 0)'
13+
${EndIf}
14+
Pop $0
1115
FunctionEnd
1216

1317
!macro customInstall

0 commit comments

Comments
 (0)