<span class="gmail_quote"></span>You are correct, a simple is just as good:<br>&nbsp;+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (This-&gt;hardwareCursor) DestroyCursor(This-&gt;hardwareCursor);<br>&nbsp;+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This-&gt;haveHardwareCursor = FALSE;<br><br>Think I must have had this patch on my computer for too long, and at the time I wrote that, I must have been working with stuff like:
<br>if (somePtr) FreeThis(somePtr);<br><br>I tried with the new code above, and everything works just as well.<div><span class="e" id="q_1127b32023dea1df_1"><br><br><div><span class="gmail_quote">On 5/11/07, <b class="gmail_sendername">
Stefan D�singer</b> &lt;<a href="mailto:stefandoesinger@gmx.at" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
stefandoesinger@gmx.at</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am Freitag 11 Mai 2007 02:34 schrieb Andrew Riedi:
<br>&gt; I made a test to figure out the exact Windows behavior, and Stefand helped<br>&gt; me out in telling me what to test.&nbsp;&nbsp;This code behaves how it should.&nbsp;&nbsp;I<br>&gt; will send the test in later once I have cleaned it up.
<br>&gt;<br>&gt; changelog: wined3d: Add hardware cursor support.<br>&gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (This-&gt;hardwareCursor) DestroyCursor(This-&gt;hardwareCursor);<br>&gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (This-&gt;haveHardwareCursor) This-&gt;haveHardwareCursor = FALSE;
<br>Is there a specific reason to test if This-&gt;haveHardwareCursor is true before<br>setting it to false? Or would a plain This-&gt;haveHardwareCursor = FALSE work<br>too?<br><br>Otherwise looked fine to me<br><br><br>

<br><br></blockquote></div><br><br clear="all"><br></span></div>-- <br><span class="sg">Andrew Riedi
</span><br clear="all"><br>-- <br>Andrew Riedi