diff options
| author | Tomáš Pazdiora <[email protected]> | 2021-01-05 19:11:48 +0100 |
|---|---|---|
| committer | Tomáš Pazdiora <[email protected]> | 2021-01-05 19:11:48 +0100 |
| commit | e11971e733d4b35cb6cdfe907b7a1f191ff4a97a (patch) | |
| tree | 4f085065464c75a7cd48169970b41e16f857102d /driver/driver.cpp | |
| parent | add "Device Hardware ID" setting, to affect only specific device (diff) | |
| download | rawaccel-e11971e733d4b35cb6cdfe907b7a1f191ff4a97a.tar.xz rawaccel-e11971e733d4b35cb6cdfe907b7a1f191ff4a97a.zip | |
simplify checking for configuration without specific device
Diffstat (limited to 'driver/driver.cpp')
| -rw-r--r-- | driver/driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/driver.cpp b/driver/driver.cpp index 2c234ba..38d127b 100644 --- a/driver/driver.cpp +++ b/driver/driver.cpp @@ -55,7 +55,7 @@ Arguments: PDEVICE_EXTENSION devExt = FilterGetData(hDevice); bool devMatch = true; - if (wcsncmp(L"", global.args.device_hw_id, sizeof(global.args.device_hw_id)) != 0) { + if (global.args.device_hw_id[0] != 0) { devMatch = wcsncmp(devExt->hwid, global.args.device_hw_id, sizeof(global.args.device_hw_id)) == 0; } |