Skip to content
Permalink
Browse files

GlobalShortcut_win: fix access to nxboxinput in EnumDevicesCB.

EnumDevicesCB is a static method, so we must access 'nxboxinput'
via the GlobalShortcutWin pointer passed as user-data.
  • Loading branch information...
mkrautz committed May 3, 2016
1 parent a1a969e commit ba1a18978ed7df3e01faaf5479f6eb5998181520
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mumble/GlobalShortcut_win.cpp
@@ -457,7 +457,7 @@ BOOL GlobalShortcutWin::EnumDevicesCB(LPCDIDEVICEINSTANCE pdidi, LPVOID pContext
// See issues mumble-voip/mumble#2104 and mumble-voip/mumble#2147
// for more information.
if (XInputCheck_IsGuidProductXInputDevice(&id->guidproduct)) {
nxboxinput += 1;
cbgsw->nxboxinput += 1;

qWarning("GlobalShortcutWin: excluded XInput device '%s' (%s) from DirectInput", qPrintable(id->name), qPrintable(id->vguid.toString()));
delete id;

0 comments on commit ba1a189

Please sign in to comment.
You can’t perform that action at this time.