<div><div>Dear Thomas:</div><div>It should be :</div><div>TRACE("After ExtSelectClipRgn:%s\n", wine_dbgstr_rect(&dstbox) );</div><div>I want make the output clear so I remove the  wine_dbgstr_rect(&srcbox), but I forgot remove the second %s. </div><div>Thank you.</div><div> </div></div><div><includetail><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Thomas Faber"<thomas.faber@reactos.org>;</div><div><b>Date: </b> Mon, Dec 8, 2014 04:05 AM</div><div><b>To: </b> "Changhui Liu"<liuchanghui@linuxdeepin.com>; <wbr></div><div><b>Cc: </b> "Sebastian Lackner"<sebastian@fds-team.de>; "Vincent Povirk"<madewokherd@gmail.com>; "wine-devel"<wine-devel@winehq.org>; "洪谦"<qhong@codeweavers.com>; <wbr></div><div><b>Subject: </b> Re: Puzzle about ExtSelectClipRgn?</div></div><div> </div>On 2014-12-03 03:36, Changhui Liu wrote:<br>> Dear all, I test this code :<br>><br>><br>> void test (HDC hdc, HRGN hregion)<br>> {<br>>      RECT srcbox;<br>>      RECT dstbox;<br>><br>><br>>      GetClipBox(hdc, &dstbox);<br>>      GetRgnBox(hregion, &srcbox);<br>><br>><br>>      TRACE("Before ExtSelectClipRgn:%s,%s\n",<br>>              wine_dbgstr_rect(&srcbox), wine_dbgstr_rect(&dstbox) );<br>><br>><br>>      ExtSelectClipRgn(hdc, hregion, RGN_AND );<br>><br>>      GetClipBox(graphics->hdc,&dstbox);<br>><br>>      TRACE("After ExtSelectClipRgn:%s,%s\n", wine_dbgstr_rect(&dstbox) );<br><br>The second %s here will print random memory.<br><br><br>> }<br>><br>><br>> It output in wine is :<br>> Before ExtSelectClipRgn:(693,5)-(763,28),(693,5)-(763,28)<br>> After ExtSelectClipRgn:(693,5)-(693,5)<br>><br>><br>> But I think it should be output:<br>> Before ExtSelectClipRgn:(693,5)-(763,28),(693,5)-(763,28)<br>> After ExtSelectClipRgn:(693,5)-(763,28)<br>><br>><br>> Where is my understanding mistake, or is it a bug in ExtSelectClipRgn?</div><!--<![endif]--></includetail></div><div><sign signid="0"><div style="color:#909090;font-family:Arial Narrow;font-size:12px"><br><br><br><br>------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>Regards.</div>
</div></sign></div><div><qzone></qzone></div>