OpenSession need a pointer of pointer

This commit is contained in:
Gowa2017
2023-04-05 01:04:18 +08:00
parent 2e30cb7d79
commit 4d40723c19

View File

@@ -103,7 +103,7 @@ int sdf_print_device_info(FILE *fp, int fmt, int ind, const char *lable, SDF_DEV
void *hSession = NULL;
DEVICEINFO devInfo;
if (SDF_OpenSession(dev->handle, hSession) != SDR_OK
if (SDF_OpenSession(dev->handle, &hSession) != SDR_OK
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
error_print();
goto end;