diff options
author | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:50:01 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:50:01 +0200 |
commit | 6213f9a4474f28b3df9abafefe2804a105b1f468 (patch) | |
tree | 16a22816c826ba2da0060bbfe63a1ec2ad0eb1b0 /zen/win_ver.h | |
parent | 6.5 (diff) | |
download | FreeFileSync-6213f9a4474f28b3df9abafefe2804a105b1f468.tar.gz FreeFileSync-6213f9a4474f28b3df9abafefe2804a105b1f468.tar.bz2 FreeFileSync-6213f9a4474f28b3df9abafefe2804a105b1f468.zip |
6.6
Diffstat (limited to 'zen/win_ver.h')
-rw-r--r-- | zen/win_ver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/win_ver.h b/zen/win_ver.h index 8797b596..766c0ee9 100644 --- a/zen/win_ver.h +++ b/zen/win_ver.h @@ -54,7 +54,7 @@ inline std::uint64_t getOsVersion() { OSVERSIONINFO osvi = {}; - osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + osvi.dwOSVersionInfoSize = sizeof(osvi); if (!::GetVersionEx(&osvi)) //38 ns per call! (yes, that's nano!) -> we do NOT miss C++11 thread safe statics right now... return 0; return toBigOsNumber(osvi.dwMajorVersion, osvi.dwMinorVersion); |