diff options
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index b94b322..81e3917 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -220,6 +220,8 @@ initwinsound(void) PyObject *module = Py_InitModule3("winsound", sound_methods, sound_module_doc); + if (module == NULL) + return; PyObject *dict = PyModule_GetDict(module); ADD_DEFINE(SND_ASYNC); |