| Index: src/plugin/PluginClass.cpp |
| =================================================================== |
| --- a/src/plugin/PluginClass.cpp |
| +++ b/src/plugin/PluginClass.cpp |
| @@ -574,8 +574,11 @@ |
| // Do we have enough rights to enable a status bar? |
| if (regRes != 0) |
| { |
| + LPCWSTR browserVersion = CPluginSystem::GetInstance()->GetBrowserVersion(); |
| + int versionNumber = wcstol(browserVersion, 0, 10); |
|
Felix Dahlke
2013/06/07 06:28:24
@Oleksandr:
Can I rely on this being an integer? I
Oleksandr
2013/06/07 07:16:46
This is guaranteed to be either 1 number or an emp
Felix Dahlke
2013/06/07 08:02:47
Hm, I thought it was shown by default in IE8. But
Wladimir Palant
2013/06/07 08:48:29
I looked through the IE versions:
* Custom title
|
| + LPCSTR messageKey = versionNumber >= 9 ? "ERROR_CAN_NOT_ENABLE_STATUS_BAR_IE9" : "ERROR_CAN_NOT_ENABLE_STATUS_BAR"; |
| // We use the tab window here and in the next few calls, since the browser window may still not be available |
| - LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR"), |
| + LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup(messageKey), |
| dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR_TITLE"), MB_OK); |
| return; |
| } |