Make off-screen rendering example work with multi-threaded message loop mode (issue #804).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@938 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-12-04 01:16:13 +00:00
parent c3bbaac18f
commit 2a17f00844
5 changed files with 59 additions and 33 deletions

View File

@ -545,12 +545,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
break;
case WM_DESTROY:
// The frame window has exited
if (g_handler->GetOSRHandler().get()) {
OSRWindow::From(g_handler->GetOSRHandler())->DestroyWidget();
g_handler->SetOSRHandler(NULL);
}
PostQuitMessage(0);
return 0;
}