ref: b8b755758cfa1e297332e5edf8e9e166ddf327ac
parent: d484bfaf001faeb48fee28d046149108ab52a394
author: Simon Howard <[email protected]>
date: Tue Sep 29 21:13:18 EDT 2009
Initialize dwOSVersionInfoSize before calling GetVersionEx(). Subversion-branch: /branches/opl-branch Subversion-revision: 1697
--- a/opl/opl_win9x.c
+++ b/opl/opl_win9x.c
@@ -96,6 +96,9 @@
// Check that this is a Windows 9x series OS:
+ memset(&version_info, 0, sizeof(version_info));
+ version_info.dwOSVersionInfoSize = sizeof(version_info);
+
GetVersionEx(&version_info);
if (version_info.dwPlatformId == 1)