
12 Oct
2006
12 Oct
'06
5:47 p.m.
Daniel Schlyder wrote:
BTW, shouldn't the line in mutex.inl that reads
OSVERSIONINFO version_info = {sizeof(OSVERSIONINFO)};
This is an idiomatic way to initialize the first member to sizeof(OSVERSIONINFO) and the rest to zero.
be replaced with
OSVERSIONINFO version_info; version_info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
This initializes dwOSVersionInfoSize to sizeof(OSVERSIONINFO) and leaves the rest uninitialized.