<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><b><span style="font-weight:bold;">De :</span></b> Bruno Jesus <00cpxxx@gmail.com><br><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div class="yui_3_7_2_62_1373485215354_68" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yui_3_7_2_62_1373485215354_69" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div dir="ltr"><font face="Arial" size="2"> <b><span style="font-weight: bold;">� :</span></b> wine-devel@winehq.org; spetreolle@yahoo.fr <br> <b><span style="font-weight: bold;">Envoy� le :</span></b> Jeudi 11 juillet 2013 17h14<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: wbemprox: Implement Win32_OperatingSystem.LocalDateTime. (try 2)<br>
 </font> </div> <div class="y_msg_container"><br>On Thu, Jul 11, 2013 at 11:19 AM, Sylvain Petreolle <<a ymailto="mailto:spetreolle@yahoo.fr" href="mailto:spetreolle@yahoo.fr">spetreolle@yahoo.fr</a>> wrote:<br>> ---<br>>  dlls/wbemprox/builtin.c | 30 ++++++++++++++++++++++++++++++<br>>  1 file changed, 30 insertions(+)<br>><br>> diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c<br>> index 9e2369a..5b7674e 100644<br>> --- a/dlls/wbemprox/builtin.c<br>> +++ b/dlls/wbemprox/builtin.c<br><br>> @@ -1774,6 +1778,31 @@ static WCHAR *get_lastbootuptime(void)<br>> +<br>> +    GetLocalTime(&st);<br>> +    Status = GetTimeZoneInformation(&tzi);<br>> +<br>> +    if(Status == TIME_ZONE_ID_INVALID) return NULL;<br><br>Aren't you leaking ret here? Maybe you could swap this check with the<br>memory allocation.<br></div></div></div></blockquote>You are right. I
 will post a new version.<br><div class="yui_3_7_2_62_1373485215354_68" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yui_3_7_2_62_1373485215354_69" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><br></div></div></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div class="yui_3_7_2_62_1373485215354_68" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yui_3_7_2_62_1373485215354_69" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><br>> +    sprintfW( ret, fmtW, st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds * 1000, -Bias);<br><br>Is it ok for the + sign to the fixed in the format?<br></div></div></div></blockquote>The + sign ensures
 that the sign appears with positive and negative bias.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal; font-weight: bold;"><span style="font-family: times new roman,new york,times,serif;">TZ=America/New_York wine wmic os get localdatetime<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal; font-weight: bold;"><span style="font-family: times new roman,new york,times,serif;">TZ=Europe/Berlin  wine wmic os get localdatetime<br></span><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div class="yui_3_7_2_62_1373485215354_68" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yui_3_7_2_62_1373485215354_69" style="font-family: times new roman, new york,
 times, serif; font-size: 12pt;"><div class="y_msg_container">Best wishes,<br>Bruno<br><br></div></div></div></blockquote><div class="yui_3_7_2_62_1373485215354_68" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yui_3_7_2_62_1373485215354_69" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container">Kind regards,<br>Sylvain Petreolle</div></div></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> </div> </div> </blockquote></div>   </div></body></html>