[NtQuerySystemInformation #7] SystemTimeOfDayInformation

Paul Vriens Paul.Vriens at xs4all.nl
Sat Jun 11 05:37:36 CDT 2005


Hi,

our SYSTEM_TIMEOFDAY_INFORMATION struct was 4 DWORD's shorter than the
windows variant. That's fixed now.

SystemTimeOfDayInformation is a bit different than the other's I've seen
so far. The other's return STATUS_INFO_LENGTH_MISMATCH if the given
buffer size is too small. SystemTimeOfDayInformation gives
STATUS_INFO_LENGTH_MISMATCH when the given buffer size is too large!

As long as the returned status is 0 the buffer is filled up to the given
length.

Added some tests for the above.

Changelog
  Fixed size of our SYSTEM_TIMEOFDAY_INFORMATION struct
  Fixed return codes and ReturnLength/buffer for SystemTimeOfDayInformation
  Added tests for SystemTimeOfDayInformation

Cheers,

Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NtQuery_7.diff
Type: text/x-patch
Size: 6698 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050611/a97a9f31/NtQuery_7.bin


More information about the wine-patches mailing list