diff options
author | Simon Howard | 2009-09-30 01:13:18 +0000 |
---|---|---|
committer | Simon Howard | 2009-09-30 01:13:18 +0000 |
commit | b8b755758cfa1e297332e5edf8e9e166ddf327ac (patch) | |
tree | 25bc441847755481c77caa70b5466633a8bae145 | |
parent | d484bfaf001faeb48fee28d046149108ab52a394 (diff) | |
download | chocolate-doom-b8b755758cfa1e297332e5edf8e9e166ddf327ac.tar.gz chocolate-doom-b8b755758cfa1e297332e5edf8e9e166ddf327ac.tar.bz2 chocolate-doom-b8b755758cfa1e297332e5edf8e9e166ddf327ac.zip |
Initialize dwOSVersionInfoSize before calling GetVersionEx().
Subversion-branch: /branches/opl-branch
Subversion-revision: 1697
-rw-r--r-- | opl/opl_win9x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opl/opl_win9x.c b/opl/opl_win9x.c index 04555760..ff527b3e 100644 --- a/opl/opl_win9x.c +++ b/opl/opl_win9x.c @@ -96,6 +96,9 @@ static int OPL_Win9x_Init(unsigned int port_base) // 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) |