mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[c-host] windows: fix errors from prior commit
This commit is contained in:
parent
4617829d41
commit
22f9fa3938
@ -32,17 +32,17 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
|
|
||||||
struct AppState
|
struct AppState
|
||||||
{
|
{
|
||||||
int argc;
|
int argc;
|
||||||
char * argv[];
|
char ** argv;
|
||||||
|
|
||||||
static char executable[MAX_PATH + 1];
|
char executable[MAX_PATH + 1];
|
||||||
static HANDLE shmemHandle;
|
HANDLE shmemHandle;
|
||||||
static bool shmemOwned;
|
bool shmemOwned;
|
||||||
static IVSHMEM_MMAP shmemMap;
|
IVSHMEM_MMAP shmemMap;
|
||||||
static HWND messageWnd;
|
HWND messageWnd;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct AppState state =
|
static struct AppState app =
|
||||||
{
|
{
|
||||||
.shmemHandle = INVALID_HANDLE_VALUE,
|
.shmemHandle = INVALID_HANDLE_VALUE,
|
||||||
.shmemOwned = false,
|
.shmemOwned = false,
|
||||||
@ -116,7 +116,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
SP_DEVICE_INTERFACE_DATA deviceInterfaceData;
|
SP_DEVICE_INTERFACE_DATA deviceInterfaceData;
|
||||||
|
|
||||||
// convert the command line to the standard argc and argv
|
// convert the command line to the standard argc and argv
|
||||||
LPWSTR * wargv = CommandLineToArgvA(GetCommandLineW(), &app.argc);
|
LPWSTR * wargv = CommandLineToArgvW(GetCommandLineW(), &app.argc);
|
||||||
app.argv = malloc(sizeof(char *) * app.argc);
|
app.argv = malloc(sizeof(char *) * app.argc);
|
||||||
for(int i = 0; i < app.argc; ++i)
|
for(int i = 0; i < app.argc; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user