qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] mingw compile error patch
@ 2006-08-22  0:24 alex
  2006-08-22  4:22 ` Kazu
  0 siblings, 1 reply; 5+ messages in thread
From: alex @ 2006-08-22  0:24 UTC (permalink / raw)
  To: qemu-devel

Hi,
The patch below allows me to compile qemu on Windows, however it is still
not working.
The program exits immediately reporting that it can't open the hard disk
image.
GDB reports the offensive pies of code is in malloc(), which does not make
sense to me.
Am I doing something wrong?

qemu_mallocz (size=2680) at c:/qemu/osdep.c:190
190         ptr = qemu_malloc(size);
(gdb)
188     {
(gdb)
190         ptr = qemu_malloc(size);
(gdb)
qemu_malloc (size=2680) at c:/qemu/osdep.c:56
56          return malloc(size);
(gdb)

Program exited with code 01.
(gdb) where
(gdb) No stack.

---------patch------------

RCS file: /sources/qemu/qemu/block-raw.c,v
retrieving revision 1.7
diff -r1.7 block-raw.c
821a822,823
> static int find_cdrom(char *cdrom_name, int cdrom_name_size);
> static int find_device_type(const char *filename);
1095c1097
<     LARGE_INTEGER l;
---
>     ULARGE_INTEGER l;
1098c1100
<     switch(s->ftype) {
---
>     switch(s->type) {
1185c1187
<     memset(drives, 0, sizeof(drivers));
---
>     memset(drives, 0, sizeof(drives));
1204c1206
<
---
>     char drive_letter[2];
1207,1209c1209,1211
<         s->drive_letter[0] = p[0];
<         s->drive_letter[1] = '\0';
<         type = GetDriveType(s->drive_letter);
---
>         drive_letter[0] = p[0];
>         drive_letter[1] = '\0';
>         type = GetDriveType(drive_letter);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-23 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22  0:24 [Qemu-devel] mingw compile error patch alex
2006-08-22  4:22 ` Kazu
2006-08-22  5:18   ` [Qemu-devel] " Alex
2006-08-22  7:45     ` Kazu
2006-08-23 16:01       ` [Qemu-devel] " alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).