From: Rcmaniac25 Date: Fri, 24 Jan 2014 10:32:52 +0000 (+0000) Subject: Fixed bug where if statement didn't have parenthesis, causing it to just exit X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=ef4ef888c1bf3ee5d3a3fb5ef7439b1bd8e7e4eb;p=freeglut Fixed bug where if statement didn't have parenthesis, causing it to just exit git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1666 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/blackberry/fg_main_blackberry.c b/src/blackberry/fg_main_blackberry.c index 60218a0..73b9f41 100644 --- a/src/blackberry/fg_main_blackberry.c +++ b/src/blackberry/fg_main_blackberry.c @@ -266,10 +266,11 @@ int fgPlatformGetModifiers (int mod) void fgPlatformProcessSingleEvent ( void ) { - if(fgStructure.CurrentWindow == NULL) + if(fgStructure.CurrentWindow == NULL) { //XXX Is this right? Would this just cause a whole lot of busy looping while we wait for events? - LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing"); + LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing"); return; + } int domain; do