Permalink
Browse files

added licence_rc checking

  • Loading branch information...
1 parent 7d0b8ad commit 8ebe946f5577a05d5ffbe6f01713dc63b909d17e @rognar rognar committed Apr 4, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 platform/wm/rhodes/IEBrowserEngine.cpp
@@ -166,9 +166,14 @@ LRESULT CIEBrowserEngine::OnWebKitMessages(UINT uMsg, WPARAM wParam, LPARAM lPar
void CIEBrowserEngine::RunMessageLoop(CMainWindow& mainWnd)
{
-#if defined( OS_WINCE )
- if(!CheckSymbolDevice()) return;
-#endif
+ int res = CheckSymbolDevice();
+ if(res == -1)
+ {
+ MessageBox(NULL, L"license_rc.dll is absent. Application will be closed"
+ , L"Rhodes", MB_SETFOREGROUND | MB_TOPMOST | MB_ICONSTOP | MB_OK);
+ return;
+ }
+ else if(res == 0) return;
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))

0 comments on commit 8ebe946

Please sign in to comment.