@Lionel , What is the QuadPart member of the structure? The high part? the low part? or another thing?<br><br>Thanks in advance :) .<br><br><div class="gmail_quote">2011/9/12 Lionel Elie Mamane <span dir="ltr"><<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sun, Sep 11, 2011 at 10:04:52PM +0200, CaStarCo wrote:<br>
> I've created a second (very little too) patch to reduce the scope of a<br>
> variable.<br>
<br>
</div>> --- a/sal/osl/w32/file_dirvol.cxx<br>
> +++ b/sal/osl/w32/file_dirvol.cxx<br>
> @@ -60,7 +60,6 @@ extern "C" BOOL TimeValueToFileTime(const TimeValue *cpTimeVal, FILETIME *pFTime<br>
<br>
Thank you for your contribution to LibreOffice, it is most<br>
welcome. Looking at that function in that file, it needs a more<br>
thorough cleanup, and maybe other functions in that file and/or in<br>
other files in the same directory; see<br>
<a href="http://msdn.microsoft.com/en-us/library/ms724284%28v=VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms724284%28v=VS.85%29.aspx</a>, in<br>
particular:<br>
<br>
It is not recommended that you add and subtract values from the<br>
FILETIME structure to obtain relative times. Instead, you should copy<br>
the low- and high-order parts of the file time to a ULARGE_INTEGER<br>
structure, perform 64-bit arithmetic on the QuadPart member, and copy<br>
the LowPart and HighPart members into the FILETIME structure.<br>
<br>
Do not cast a pointer to a FILETIME structure to either a<br>
ULARGE_INTEGER* or __int64* value because it can cause alignment<br>
faults on 64-bit Windows.<br>
<br>
It would be best to look at every place that FILETIME is used in that<br>
directory.<br>
<br>
Just in case you want to volunteer for that cleanup :)<br>
<br>
When you send a patch, could you please confirm the patch is licensed<br>
under MPL1.1/LGPLv3+? To make things easier, you can do a one-time<br>
blanket "all my patches" thing if you wish, sort of common to do that.<br>
<br>
<br>
Best Regards,<br>
<br>
--<br>
<font color="#888888">Lionel<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>- Per la llibertat del coneixement -<br>- Per la llibertat de la ment... -<br>