comparison Render.cpp @ 2422:bb1273b1b9b6

//Uninitialized memory access
author Ritor1
date Wed, 23 Jul 2014 01:18:24 +0600
parents fc7456da5a93
children 255168c31655 d922225a6081
comparison
equal deleted inserted replaced
2421:fc7456da5a93 2422:bb1273b1b9b6
1879 GetClientRect(hWindow, &rc); 1879 GetClientRect(hWindow, &rc);
1880 Point.y = 0; 1880 Point.y = 0;
1881 Point.x = 0; 1881 Point.x = 0;
1882 ClientToScreen(hWindow, &Point); 1882 ClientToScreen(hWindow, &Point);
1883 OffsetRect(&rc, Point.x, Point.y); 1883 OffsetRect(&rc, Point.x, Point.y);
1884 pFrontBuffer->Blt(&rc, pBackBuffer, &v5, DDBLT_WAIT, 0); 1884 pFrontBuffer->Blt(&rc, pBackBuffer, &v5, DDBLT_WAIT, 0);//Uninitialized memory access
1885 } 1885 }
1886 else 1886 else
1887 pFrontBuffer->Flip(0, 1); 1887 pFrontBuffer->Flip(0, 1);
1888 } 1888 }
1889 1889
2757 { 2757 {
2758 pict_byte = lineRGB[i]; 2758 pict_byte = lineRGB[i];
2759 for ( test_byte = 1; test_byte < 63; ++test_byte ) 2759 for ( test_byte = 1; test_byte < 63; ++test_byte )
2760 { 2760 {
2761 v15 = i + test_byte; 2761 v15 = i + test_byte;
2762 if ( lineRGB[v15] != pict_byte ) 2762 if ( lineRGB[v15] != pict_byte )//Uninitialized memory access
2763 break; 2763 break;
2764 if ( !(v15 % pitch) ) 2764 if ( !(v15 % pitch) )
2765 break; 2765 break;
2766 } 2766 }
2767 if ( i + test_byte > v26 ) 2767 if ( i + test_byte > v26 )