From 41f218316dce6b1bfcfb0f2754379fa74c5138ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2013 14:35:34 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AdvaImg/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/AdvaImg/src') 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); -- cgit v1.2.3