<div dir="ltr">Thank you for commenting~<br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-23 23:45 GMT+08:00 Nikolay Sivov <span dir="ltr"><<a href="mailto:nsivov@codeweavers.com" target="_blank">nsivov@codeweavers.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/23/2014 19:38, Shuai Meng wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+    GetLocalTime(&lt);<br>
+    <a href="http://ud.st" target="_blank">ud.st</a> = lt;<br>
+    VarDateFromUdateEx(&ud, 0, VAR_DATEVALUEONLY, &date);<br>
+    return return_date(res, date);<br>
</blockquote>
It's better to init 'wDayOfYear' part too, even if it's not used internally +variant will show its garbage value. </blockquote><div>I will check this.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Also I'm not sure about ignoring return value of VarDateFromUdateEx().<br>
<br>
<br></blockquote><div>I am not sure as well , but maybe it's better to add it.</div></div><br></div></div>