harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r532389 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c
Date Wed, 25 Apr 2007 15:30:27 GMT
Author: apetrenko
Date: Wed Apr 25 08:30:26 2007
New Revision: 532389

URL: http://svn.apache.org/viewvc?view=rev&rev=532389
Log:
Patch for HARMONY-3677 "[classlib][awt] Results of running checker tool"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c?view=diff&rev=532389&r1=532388&r2=532389
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c Wed
Apr 25 08:30:26 2007
@@ -69,10 +69,6 @@
   decoderInfo->env = env;
   decoderInfo->obj = obj;
   
-  // Obtain input data
-  decoderInfo->jInputData = jInput;
-  decoderInfo->inputBuffer = (*env)->GetPrimitiveArrayCritical(env, jInput, 0);
-  
   // Get java array for image data if it is created (header is passed already)
   if(decoderInfo->colorType >= 0) {
     if(decoderInfo->colorType == PNG_COLOR_TYPE_RGB || 
@@ -83,6 +79,10 @@
     }
     decoderInfo->imageData = (*env)->GetPrimitiveArrayCritical(env, decoderInfo->jImageData,
0);
   }  
+
+  // Obtain input data
+  decoderInfo->jInputData = jInput;
+  decoderInfo->inputBuffer = (*env)->GetPrimitiveArrayCritical(env, jInput, 0);  
 
   // Now process data
   processData(decoderInfo, decoderInfo->inputBuffer, bytesInBuffer);



Mime
View raw message