if(width==-1||height==-1){// MulDiv caught an overflow or divide by zero)returnE_FAIL;}

assert(width<=DestWidth);assert(height<=DestHeight);

// Fill in the rectangleprcResult->left=rcDest.left+((DestWidth-width)/2);prcResult->right=prcResult->left+width;prcResult->top=rcDest.top+((DestHeight-height)/2);prcResult->bottom=prcResult->top+height;