diff --git a/PC/winsound.c b/PC/winsound.c index 81e3917ed66..bc30ccc584f 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -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);