Skip to content

Commit

Permalink
OpenSession need a pointer of pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowa2017 authored and Gowa2017 committed Apr 4, 2023
1 parent 2e30cb7 commit 4d40723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdf/sdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d40723

Please sign in to comment.