summaryrefslogtreecommitdiff
path: root/driver/driver.cpp
diff options
context:
space:
mode:
authorTomáš Pazdiora <[email protected]>2021-01-05 19:11:48 +0100
committerTomáš Pazdiora <[email protected]>2021-01-05 19:11:48 +0100
commite11971e733d4b35cb6cdfe907b7a1f191ff4a97a (patch)
tree4f085065464c75a7cd48169970b41e16f857102d /driver/driver.cpp
parentadd "Device Hardware ID" setting, to affect only specific device (diff)
downloadrawaccel-e11971e733d4b35cb6cdfe907b7a1f191ff4a97a.tar.xz
rawaccel-e11971e733d4b35cb6cdfe907b7a1f191ff4a97a.zip
simplify checking for configuration without specific device
Diffstat (limited to 'driver/driver.cpp')
-rw-r--r--driver/driver.cpp2
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;
}