summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
commit41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch)
tree1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /plugins/AdvaImg
parent397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AdvaImg')
-rw-r--r--plugins/AdvaImg/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/main.cpp b/plugins/AdvaImg/src/main.cpp
index 83b092a59a..9c7bdb698a 100644
--- a/plugins/AdvaImg/src/main.cpp
+++ b/plugins/AdvaImg/src/main.cpp
@@ -759,7 +759,7 @@ extern "C" BOOL __declspec(dllexport) dib2mempng( BITMAPINFO* pbmi, png_byte* pD
} }
else {
for ( j = 0; j < pbmi->bmiHeader.biWidth; j++ ) {
- DWORD point;
+ DWORD point = 0;
if ( ciChannels == 1 ) {
*d++ = ( BYTE )( point & 0x03 ) << 6;
*d++ = ( BYTE )(( point & 0x0C ) >> 2 ) << 6;
@@ -772,7 +772,7 @@ extern "C" BOOL __declspec(dllexport) dib2mempng( BITMAPINFO* pbmi, png_byte* pD
*d++ = ( BYTE )(( point & 0x001F ) << 3 );
*d++ = ( BYTE )((( point & 0x07e0 ) >> 6 ) << 3 );
*d++ = ( BYTE )((( point & 0xF800 ) >> 11 ) << 3 );
- } } } }
+ } } } }
png_write_image (png_ptr, ppbRowPointers);
png_write_end(png_ptr, info_ptr);