harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r696220 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp
Date Wed, 17 Sep 2008 09:39:37 GMT
Author: odeakin
Date: Wed Sep 17 02:39:37 2008
New Revision: 696220

URL: http://svn.apache.org/viewvc?rev=696220&view=rev
Log:
Fix error from HARMONY-5976 ([classlib] Results of static analysis):
 - Ensure mask is initialised before use

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp?rev=696220&r1=696219&r2=696220&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/windows/WinGraphicsEnvironment.cpp
Wed Sep 17 02:39:37 2008
@@ -123,8 +123,8 @@
 
     bits = bmpInfo.bmiHeader.biBitCount;
 
+    mask = (DWORD *)bmpInfo.bmiColors;
     if(bmpInfo.bmiHeader.biCompression == BI_BITFIELDS){
-        mask = (DWORD *)bmpInfo.bmiColors;
 
         if(mask[0] == 0x7c00 && mask[1] == 0x03e0 && mask[2] == 0x1f){
 



Mime
View raw message