From ae2fc2aff7c13620026bdfe6827efc195f0e52af Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 8 Feb 2008 20:40:50 +0000 Subject: [PATCH] use integer comparison for comparing pointers to zero to support "error" return value git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5526 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI 2/Pages/Finish.nsh | 2 +- Contrib/Modern UI 2/Pages/Welcome.nsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Contrib/Modern UI 2/Pages/Finish.nsh b/Contrib/Modern UI 2/Pages/Finish.nsh index 2e4e4a82..4d6d7031 100644 --- a/Contrib/Modern UI 2/Pages/Finish.nsh +++ b/Contrib/Modern UI 2/Pages/Finish.nsh @@ -275,7 +275,7 @@ Finish page (implemented using nsDialogs) !ifndef MUI_${MUI_PAGE_UNINSTALLER_PREFIX}WELCOMEFINISHPAGE_BITMAP_NOSTRETCH System::Call '*(i, i, i, i) i.s' Pop $mui.FinishPage.Image.Rect - ${If} $mui.FinishPage.Image.Rect != 0 + ${If} $mui.FinishPage.Image.Rect <> 0 System::Call 'user32::GetClientRect(i $mui.FinishPage.Image, i $mui.FinishPage.Image.Rect)' System::Call '*$mui.FinishPage.Image.Rect(i, i, i .s, i .s)' System::Free $mui.FinishPage.Image.Rect diff --git a/Contrib/Modern UI 2/Pages/Welcome.nsh b/Contrib/Modern UI 2/Pages/Welcome.nsh index 1f87bacc..eabe6521 100644 --- a/Contrib/Modern UI 2/Pages/Welcome.nsh +++ b/Contrib/Modern UI 2/Pages/Welcome.nsh @@ -137,7 +137,7 @@ Welcome page (implemented using nsDialogs) !ifndef MUI_${MUI_PAGE_UNINSTALLER_PREFIX}WELCOMEFINISHPAGE_BITMAP_NOSTRETCH System::Call '*(i, i, i, i) i.s' Pop $mui.WelcomePage.Image.Rect - ${If} $mui.WelcomePage.Image.Rect != 0 + ${If} $mui.WelcomePage.Image.Rect <> 0 System::Call 'user32::GetClientRect(i $mui.WelcomePage.Image, i $mui.WelcomePage.Image.Rect)' System::Call '*$mui.WelcomePage.Image.Rect(i, i, i .s, i .s)' System::Free $mui.WelcomePage.Image.Rect