mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] windows: check the ivshmem device exists in the service
This commit is contained in:
@@ -447,7 +447,13 @@ int app_main(int argc, char * argv[])
|
||||
|
||||
DEBUG_INFO("Looking Glass Host (%s)", BUILD_VERSION);
|
||||
|
||||
struct IVSHMEM shmDev;
|
||||
struct IVSHMEM shmDev = { 0 };
|
||||
if (!ivshmemInit(&shmDev))
|
||||
{
|
||||
DEBUG_ERROR("Failed to find the IVSHMEM device");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!ivshmemOpen(&shmDev))
|
||||
{
|
||||
DEBUG_ERROR("Failed to open the IVSHMEM device");
|
||||
@@ -638,6 +644,7 @@ fail:
|
||||
lgmpHostFree(&app.lgmp);
|
||||
|
||||
ivshmemClose(&shmDev);
|
||||
ivshmemFree(&shmDev);
|
||||
return exitcode;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user