Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 773feaf

Browse files
committed
initwinsound(): this no longer compiled on Windows,
because code snuck in between auto declarations.
1 parent 2188bf0 commit 773feaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PC/winsound.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,13 @@ initwinsound(void)
217217
{
218218
OSVERSIONINFO version;
219219

220+
PyObject *dict;
220221
PyObject *module = Py_InitModule3("winsound",
221222
sound_methods,
222223
sound_module_doc);
223224
if (module == NULL)
224225
return;
225-
PyObject *dict = PyModule_GetDict(module);
226+
dict = PyModule_GetDict(module);
226227

227228
ADD_DEFINE(SND_ASYNC);
228229
ADD_DEFINE(SND_NODEFAULT);

0 commit comments

Comments
 (0)