while (GetMessage(&msg, NULL, 0, 0)) { if (!JSConsole::sAccelTable ||
BOOL bContinue = TRUE;  while (bContinue) { if (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if (!JSConsole::sAccelTable ||
RunViewer(HANDLE instance, HANDLE prevInstance, LPSTR cmdParam, int nCmdShow, nsWin32Viewer* aViewer){  gInstance = instance;  gPrevInstance = prevInstance;  SetViewer(aViewer);  nsIWidget *mainWindow = nsnull;  nsDocLoader* dl = aViewer->SetupViewer(&mainWindow, 0, 0);   // Process messages  MSG msg;  while (GetMessage(&msg, NULL, 0, 0)) {    if (!JSConsole::sAccelTable ||        !gConsole ||        !gConsole->GetMainWindow() ||        !TranslateAccelerator(gConsole->GetMainWindow(), JSConsole::sAccelTable, &msg)) {        TranslateMessage(&msg);        DispatchMessage(&msg);        NET_PollSockets();    }  }  aViewer->CleanupViewer(dl);  return msg.wParam;}