mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
missed commits
This commit is contained in:
parent
b74ae092c9
commit
dc54a5eceb
2
.gitignore
vendored
2
.gitignore
vendored
@ -140,3 +140,5 @@ SheepShaver/src/Windows/config.log
|
||||
SheepShaver/src/kpx_cpu/src/cpu/jit/x86/codegen_x86.h
|
||||
BasiliskII/src/Windows/x64/
|
||||
SheepShaver/src/Windows/config.status
|
||||
SheepShaver/src/Windows/obj/
|
||||
SheepShaver/src/Windows/build_on_msys.cache.json
|
||||
|
@ -39,6 +39,8 @@
|
||||
#include "ether_windows.h"
|
||||
#include "router/router.h"
|
||||
#include "util_windows.h"
|
||||
// somehow util_windows undefines min
|
||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||
#include "libslirp.h"
|
||||
|
||||
// Define to let the slirp library determine the right timeout for select()
|
||||
|
@ -28,6 +28,8 @@
|
||||
|
||||
#include "main.h"
|
||||
#include "util_windows.h"
|
||||
// somehow util_windows undefines min
|
||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||
#include "macos_util.h"
|
||||
#include "prefs.h"
|
||||
#include "serial.h"
|
||||
@ -310,12 +312,12 @@ open_error:
|
||||
if (input_thread_active) {
|
||||
TerminateThread(input_thread_active,0);
|
||||
CloseHandle(input_signal);
|
||||
input_thread_active = false;
|
||||
input_thread_active = 0;
|
||||
}
|
||||
if (output_thread_active) {
|
||||
TerminateThread(output_thread_active,0);
|
||||
CloseHandle(output_signal);
|
||||
output_thread_active = false;
|
||||
output_thread_active = 0;
|
||||
}
|
||||
if(fd != INVALID_HANDLE_VALUE) {
|
||||
CloseHandle(fd);
|
||||
@ -674,13 +676,13 @@ int16 XSERDPort::close()
|
||||
if (input_thread_active) {
|
||||
quitting = true;
|
||||
ReleaseSemaphore(input_signal,1,NULL);
|
||||
input_thread_active = false;
|
||||
input_thread_active = 0;
|
||||
CloseHandle(input_signal);
|
||||
}
|
||||
if (output_thread_active) {
|
||||
quitting = true;
|
||||
ReleaseSemaphore(output_signal,1,NULL);
|
||||
output_thread_active = false;
|
||||
output_thread_active = 0;
|
||||
// bugfix: was: CloseHandle(&output_signal);
|
||||
CloseHandle(output_signal);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user