mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-01-15 13:57:12 +00:00
mingw: fix format string for wchar_t
%ls (or %S) must be used to printf a wchar_t *
This commit is contained in:
parent
b1e2f1a8ed
commit
afade2bc00
@ -69,7 +69,7 @@ bool VirtioVDIPort::init()
|
||||
_handle = CreateFile(VIOSERIAL_PORT_PATH, GENERIC_READ | GENERIC_WRITE , 0, NULL,
|
||||
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
|
||||
if (_handle == INVALID_HANDLE_VALUE) {
|
||||
vd_printf("CreateFile() %s failed: %lu", VIOSERIAL_PORT_PATH, GetLastError());
|
||||
vd_printf("CreateFile() %ls failed: %lu", VIOSERIAL_PORT_PATH, GetLastError());
|
||||
return false;
|
||||
}
|
||||
_write.overlap.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user