]> git.proxmox.com Git - mirror_qemu.git/blobdiff - chardev/char-win.c
target/arm: Fix incorrect aa64_tidcp1 feature check
[mirror_qemu.git] / chardev / char-win.c
index 34825f683dbaa752fcfd6168916d142489a280a5..d4fb44c4dcc5faefd8abc8e699324e9b6874022b 100644 (file)
@@ -96,7 +96,7 @@ int win_chr_serial_init(Chardev *chr, const char *filename, Error **errp)
     s->file = CreateFile(filename, GENERIC_READ | GENERIC_WRITE, 0, NULL,
                       OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);
     if (s->file == INVALID_HANDLE_VALUE) {
-        error_setg(errp, "Failed CreateFile (%lu)", GetLastError());
+        error_setg_win32(errp, GetLastError(), "Failed CreateFile");
         s->file = NULL;
         goto fail;
     }