initwinsound(): this no longer compiled on Windows,

because code snuck in between auto declarations.
This commit is contained in:
Tim Peters 2006-01-19 15:25:07 +00:00
parent 2188bf03bc
commit 773feaf529
1 changed files with 2 additions and 1 deletions

View File

@ -217,12 +217,13 @@ initwinsound(void)
{
OSVERSIONINFO version;
PyObject *dict;
PyObject *module = Py_InitModule3("winsound",
sound_methods,
sound_module_doc);
if (module == NULL)
return;
PyObject *dict = PyModule_GetDict(module);
dict = PyModule_GetDict(module);
ADD_DEFINE(SND_ASYNC);
ADD_DEFINE(SND_NODEFAULT);