From 62b1097ad2c22ab40e1ea653e6ef75a58fea719f Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 23 Jul 2005 13:07:04 +0000 Subject: [PATCH] when looking for branding image place holder, look for "Static" class too (windres...) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4191 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index c7f71a4a..96580e94 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2271,13 +2271,12 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) branding_image_found = false; DialogItemTemplate* dlgItem = 0; for (int i = 0; (dlgItem = UIDlg.GetItemByIdx(i)); i++) { - if (IS_INTRESOURCE(dlgItem->szClass)) { - if (dlgItem->szClass == MAKEINTRESOURCE(0x0082)) { - if ((dlgItem->dwStyle & SS_BITMAP) == SS_BITMAP) { - branding_image_found = true; - branding_image_id = dlgItem->wId; - break; - } + if ((IS_INTRESOURCE(dlgItem->szClass) && dlgItem->szClass == MAKEINTRESOURCE(0x0082)) + || (!IS_INTRESOURCE(dlgItem->szClass) && !strcmp(dlgItem->szClass, "Static"))) { + if ((dlgItem->dwStyle & SS_BITMAP) == SS_BITMAP) { + branding_image_found = true; + branding_image_id = dlgItem->wId; + break; } } }