From 3b234512f97cbbef2dbe4e05519baf7e471bb4ce Mon Sep 17 00:00:00 2001 From: Thorvald Natvig Date: Tue, 20 Oct 2009 23:01:02 +0200 Subject: [PATCH] Explicitly set DirectInput device pointer to NULL to ease debugging --- src/mumble/GlobalShortcut_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mumble/GlobalShortcut_win.cpp b/src/mumble/GlobalShortcut_win.cpp index 3aa78f3d3..374fc4aa0 100644 --- a/src/mumble/GlobalShortcut_win.cpp +++ b/src/mumble/GlobalShortcut_win.cpp @@ -176,6 +176,7 @@ BOOL GlobalShortcutWin::EnumDevicesCB(LPCDIDEVICEINSTANCE pdidi, LPVOID pContext QString sname = QString::fromUtf16(reinterpret_cast(pdidi->tszInstanceName)); InputDevice *id = new InputDevice; + id->pDID = NULL; id->name = name; id->guid = pdidi->guidInstance; id->vguid = QVariant(QUuid(id->guid).toString());