diff options
Diffstat (limited to 'api/driver.c')
-rw-r--r-- | api/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/driver.c b/api/driver.c index 2671c93..66d87ee 100644 --- a/api/driver.c +++ b/api/driver.c @@ -70,7 +70,7 @@ SnapshotConfigurationAndState( 0); DWORD LastError = ERROR_SUCCESS; - WCHAR InstanceId[MAX_INSTANCE_ID]; + WCHAR InstanceId[MAX_DEVICE_ID_LEN]; DWORD RequiredBytes = _countof(InstanceId); if (!SetupDiGetDeviceInstanceIdW(DevInfo, DevInfoData, InstanceId, RequiredBytes, &RequiredBytes)) { @@ -137,7 +137,7 @@ RestoreConfigurationAndState( 0); DWORD LastError = ERROR_SUCCESS; - WCHAR InstanceId[MAX_INSTANCE_ID]; + WCHAR InstanceId[MAX_DEVICE_ID_LEN]; DWORD RequiredBytes = _countof(InstanceId); if (!SetupDiGetDeviceInstanceIdW(DevInfo, DevInfoData, InstanceId, RequiredBytes, &RequiredBytes)) { |