mirror of
https://github.com/holub/mame
synced 2025-05-11 16:48:52 +03:00
OS/2 updates [KO Myung-Hun]
This commit is contained in:
parent
15d533f21b
commit
b4ab914f21
@ -38,6 +38,13 @@ static unsigned char co_swap_function[] = {
|
||||
DWORD old_privileges;
|
||||
VirtualProtect(co_swap_function, sizeof co_swap_function, PAGE_EXECUTE_READWRITE, &old_privileges);
|
||||
}
|
||||
#elif defined(__OS2__)
|
||||
#define INCL_DOS
|
||||
#include <os2.h>
|
||||
|
||||
void co_init() {
|
||||
DosSetMem(co_swap_function, sizeof co_swap_function, PAG_READ | PAG_WRITE | PAG_EXECUTE);
|
||||
}
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
|
@ -391,7 +391,9 @@ int osd_event_wait(osd_event *event, osd_ticks_t timeout)
|
||||
{
|
||||
ULONG ulCount;
|
||||
|
||||
DosResetEventSem(event->hev, &ulCount);
|
||||
if(rc == 0)
|
||||
DosResetEventSem(event->hev, &ulCount);
|
||||
|
||||
DosReleaseMutexSem(event->hmtx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user