Avoid Profile Function Using Invalid File Handle
rob at codeweavers.com
Mon Jan 10 10:52:23 CST 2005
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.
- 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
- Reindent to 4 spaces.
-------------- next part --------------
A non-text attachment was scrubbed...
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