<div class="gmail_quote">On Tue, Aug 23, 2011 at 3:13 PM, Joris Huizer <span dir="ltr">&lt;<a href="mailto:joris_huizer@yahoo.com">joris_huizer@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div class="h5">On 08/23/2011 11:45 AM, Hans Leidekker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+    if (!strcmpiW( package, unsquashed ))<br>
</blockquote>
<br></div></div>
I&#39;m confused about the last part of the function.<br>
I think if the comparison between &#39;package&#39; and &#39;unsquashed&#39; fails, you want to return an error,<br>
but the return value &#39;r&#39; will be ERROR_SUCCESS at that point, and isn&#39;t updated.<br></blockquote><div><br></div><div>Hello,</div><div><br></div><div>The function strcmpiW returns 0 when the strings are equal, and non-zero when they are different (&lt; 0 if first is smaller, &gt; 0 if first is larger, lexicographically speaking). The condition checks if the strings match, not if the function failed (string comparison cannot &quot;fail&quot;).</div>

<div><br></div><div>Cheers,</div><div>Octavian</div><div><br></div></div>