mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-23 08:29:15 +00:00
Fix compilation errors on Windows
This commit is contained in:
@@ -114,9 +114,6 @@ int PltIsThreadInterrupted(PLT_THREAD* thread) {
|
|||||||
|
|
||||||
void PltInterruptThread(PLT_THREAD* thread) {
|
void PltInterruptThread(PLT_THREAD* thread) {
|
||||||
thread->cancelled = 1;
|
thread->cancelled = 1;
|
||||||
#if defined(LC_WINDOWS)
|
|
||||||
SetEvent(thread->termRequested);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD* thread) {
|
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)
|
#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) {
|
if (thread->handle == NULL) {
|
||||||
free(ctx);
|
free(ctx);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user