mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
Add hid_exit() to test.c when handle not found (#471)
This commit is contained in:
@@ -119,8 +119,7 @@ int main(int argc, char* argv[])
|
||||
handle = hid_open(0x4d8, 0x3f, NULL);
|
||||
if (!handle) {
|
||||
printf("Unable to open device\n");
|
||||
|
||||
hid_exit()
|
||||
hid_exit();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,7 @@ int main(int argc, char* argv[])
|
||||
handle = hid_open(0x4d8, 0x3f, NULL);
|
||||
if (!handle) {
|
||||
printf("unable to open device\n");
|
||||
hid_exit();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user