diff --git a/patches/qemu/9009-antidetect-hw-ide.patch b/patches/qemu/9009-antidetect-hw-ide.patch index c1b9137..9d35e6e 100644 --- a/patches/qemu/9009-antidetect-hw-ide.patch +++ b/patches/qemu/9009-antidetect-hw-ide.patch @@ -16,14 +16,14 @@ diff -Naur --no-dereference a/hw/ide/core.c b/hw/ide/core.c --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -2627,20 +2627,20 @@ - pstrcpy(s->drive_serial_str, sizeof(s->drive_serial_str), serial); + pstrcpy(s->drive_serial_str, sizeof(s->drive_serial_str), dev->serial); } else { snprintf(s->drive_serial_str, sizeof(s->drive_serial_str), - "QM%05d", s->drive_serial); + "ASUS%05d", s->drive_serial); } - if (model) { - pstrcpy(s->drive_model_str, sizeof(s->drive_model_str), model); + if (dev->model) { + pstrcpy(s->drive_model_str, sizeof(s->drive_model_str), dev->model); } else { switch (kind) { case IDE_CD: