From 2f20f50ea421e7392bfed7bf7098a6b480063208 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 29 Oct 2003 23:22:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2604 --- api/windows_opengl.C | 10 ++++++---- checkin_notes | 7 +++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/api/windows_opengl.C b/api/windows_opengl.C index a451810c7e..45ae494970 100755 --- a/api/windows_opengl.C +++ b/api/windows_opengl.C @@ -167,9 +167,11 @@ void SetMode(int mode) { // tell the core client that we're entering new mode // - app_client_shm->send_graphics_mode_msg( - APP_CORE_GFX_SEG, current_graphics_mode - ); + if (app_client_shm) { + app_client_shm->send_graphics_mode_msg( + APP_CORE_GFX_SEG, current_graphics_mode + ); + } } // message handler (includes timer, Windows msgs) @@ -233,7 +235,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window ReSizeGLScene(LOWORD(lParam),HIWORD(lParam)); return 0; case WM_TIMER: - if (app_client_shm->get_graphics_mode_msg(CORE_APP_GFX_SEG, new_mode)) { + if (app_client_shm && app_client_shm->get_graphics_mode_msg(CORE_APP_GFX_SEG, new_mode)) { SetMode(new_mode); } if (!visible) return 0; diff --git a/checkin_notes b/checkin_notes index 4bd6bc4d62..15f8204c91 100755 --- a/checkin_notes +++ b/checkin_notes @@ -7200,3 +7200,10 @@ Oliver 29 Oct 2003 gutil.C,h +David 28 Oct 2003 + - app library: don't access shared memory if it's not there + (should keep non-standalone version from crashing + when run in isolation) + + api/ + windows_opengl.C