diff --git a/VERSION b/VERSION index 5219e617..95407fa5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-17-g0e7e918e2c+1 \ No newline at end of file +B1-18-g438548c427+1 \ No newline at end of file diff --git a/porthole/src/windows/device.c b/porthole/src/windows/device.c index 57375569..274bc8c7 100644 --- a/porthole/src/windows/device.c +++ b/porthole/src/windows/device.c @@ -130,13 +130,13 @@ bool porthole_dev_share(PortholeDev handle, const uint32_t type, void *buffer, s { DWORD returned; - PortholeMsg msg = { + PortholeMsg msg = { .type = type, .addr = buffer, .size = size }; - if (!DeviceIoControl(handle->dev, IOCTL_PORTHOLE_SEND_MSG, &msg, sizeof(PortholeMsg), NULL, 0, &returned, NULL)) + if (!DeviceIoControl(handle->dev, IOCTL_PORTHOLE_SEND_MSG, &msg, sizeof(PortholeMsg), NULL, 0, &returned, NULL)) return false; return true; @@ -146,12 +146,12 @@ bool porthole_dev_unlock(PortholeDev handle, void *buffer, size_t size) { DWORD returned; - PortholeLockMsg msg = { + PortholeLockMsg msg = { .addr = buffer, .size = size }; - if (!DeviceIoControl(handle->dev, IOCTL_PORTHOLE_UNLOCK_BUFFER, &msg , sizeof(PortholeLockMsg), NULL, 0, &returned, NULL)) + if (!DeviceIoControl(handle->dev, IOCTL_PORTHOLE_UNLOCK_BUFFER, &msg , sizeof(PortholeLockMsg), NULL, 0, &returned, NULL)) return false; return true; diff --git a/porthole/src/windows/driver.h b/porthole/src/windows/driver.h index 95bf6434..dbc8ee63 100644 --- a/porthole/src/windows/driver.h +++ b/porthole/src/windows/driver.h @@ -7,16 +7,16 @@ DEFINE_GUID (GUID_DEVINTERFACE_PORTHOLE, typedef struct _PortholeMsg { - UINT32 type; - PVOID addr; - UINT32 size; + UINT32 type; + PVOID addr; + UINT32 size; } PortholeMsg, *PPortholeMsg; typedef struct _PortholeLockMsg { - PVOID addr; - UINT32 size; + PVOID addr; + UINT32 size; } PortholeLockMsg, *PPortholeLockMsg;