Avoid Profile Function Using Invalid File Handle
Robert Shearman
rob at codeweavers.com
Mon Jan 10 10:52:23 CST 2005
Hi,
The previous code would use an invalid file handle, resulting in false
information being put into the logs. Not only that, some of the code was
only used when logging. So I have protected against using an invalid
file handle and made the code that gets the timestamp from the file
depend on being traced.
Rob
Changelog:
- Don't use an invalid file handle. In this case invalid file handle
means that the file hasn't yet been created.
- Only call GetFileTime when we are being logged for a tiny performance
improvement.
- Reindent to 4 spaces.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile.diff
Type: text/x-patch
Size: 2610 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050110/3380e8e0/profile.bin
More information about the wine-patches
mailing list