[uae] uae 0.8.29 bug?

  • From: Mustafa Tufan <mustafa.tufan@xxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Wed, 14 Apr 2010 16:54:24 +0300

hello,

i was browsing uae 0.8.29's sources and i noticed in memory.c;

...
mapped_malloc
...
    id = shmget (IPC_PRIVATE, s, 0x1ff, file);
    if (id == 1) {
        canbang = 0;
        return mapped_malloc (s, file);
    }

shmget either returns -1 (failed) or identifier, so compare should be
against -1 not 1.

cheers,

-mustafa.

Other related posts:

  • » [uae] uae 0.8.29 bug? - Mustafa Tufan