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
This commit is contained in:
kichik 2005-07-23 13:07:04 +00:00
parent 26a50e9995
commit 62b1097ad2

View file

@ -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;
}
}
}