Re: windowscodecs: Fix *_CopyPixels functions to properly handle a NULL rectangle

2010-10-18 Thread Krzysztof Nowicki
W dniu 17.10.2010 18:49, Vitaliy Margolen pisze: On 10/17/2010 01:59 AM, Krzysztof Nowicki wrote: Doing a memcpy to a local rectangle seems a morenatural way to do it Not really. Doing RECT = RECT is the natural way to do it. Don't use memcpy to copy one structure to another structure o

Re: windowscodecs: Fix *_CopyPixels functions to properly handle a NULL rectangle

2010-10-17 Thread Krzysztof Nowicki
W dniu 17.10.2010 01:45, Vincent Povirk pisze: +1 +if (!prc) +{ +UINT width, height; +hr = IWICBitmapSource_GetSize(This->source,&width,&height); +if (FAILED(hr)) return hr; +rc.X = 0; +rc.Y = 0; +rc.Width =