[c-host] more windows basics and ivshmem pointer init

This commit is contained in:
Geoffrey McRae
2019-02-28 20:50:22 +11:00
parent 6894ed7d5c
commit d881df916e
5 changed files with 109 additions and 21 deletions

View File

@@ -85,6 +85,18 @@ int WINAPI WinMain(HINSTANCE hInstnace, HINSTANCE hPrevInstance, LPSTR lpCmdLine
os_shmemUnmap();
CloseHandle(shmemHandle);
if (result != 0)
{
MessageBoxA(
NULL,
"The Looking Glass host has terminated due to an error.\r\n"
"\r\n"
"For more information run the application in a command prompt.",
"Looking Glass Host",
MB_ICONERROR);
}
return result;
}