mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Fix compilation errors on Windows
This commit is contained in:
parent
51e5b89018
commit
c44cdffdd5
@ -114,9 +114,6 @@ int PltIsThreadInterrupted(PLT_THREAD* thread) {
|
||||
|
||||
void PltInterruptThread(PLT_THREAD* thread) {
|
||||
thread->cancelled = 1;
|
||||
#if defined(LC_WINDOWS)
|
||||
SetEvent(thread->termRequested);
|
||||
#endif
|
||||
}
|
||||
|
||||
int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD* thread) {
|
||||
@ -134,7 +131,7 @@ int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD* thread) {
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
{
|
||||
thread->handle = CreateThread(NULL, 0, ThreadProc, ctx, 0, &thread->tid);
|
||||
thread->handle = CreateThread(NULL, 0, ThreadProc, ctx, 0, NULL);
|
||||
if (thread->handle == NULL) {
|
||||
free(ctx);
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user