From: sangjin3.kim Date: Thu, 22 Mar 2012 08:17:58 +0000 (+0900) Subject: [Title] Return variable null pointer bug fix. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1773^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6842be07ec1cbdc3268c961cfb169a7c3d424db6;p=sdk%2Femulator%2Fqemu.git [Title] Return variable null pointer bug fix. [Type] bug fix. [Module] opengl-es [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/tizen/src/hw/helper_opengl.c b/tizen/src/hw/helper_opengl.c index 181ce88203..c5cd4fa313 100755 --- a/tizen/src/hw/helper_opengl.c +++ b/tizen/src/hw/helper_opengl.c @@ -132,11 +132,13 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int CASE_OUT_POINTERS: { - /* It seems that we never experience NULL out pointers!!! */ - if (args_size == 0 && func_number != 4) // FIXMEIM - hack for now - return 0; - - if(*(int*)argptr) { + /* NULL pointer is used as output pointer + since the argument size is zero. */ + if (args_size == 0) { + *(int*)r_buffer = 0; + r_buffer += 4; + args[i] = NULL; + } else if(*(int*)argptr) { *(int*)r_buffer = args_size; r_buffer+=4; args[i] = (host_ptr)r_buffer;