X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_trylock.c;h=753dd6e12a4671564d242086e738b8448d57d62f;hp=ebc5e85c3c3fbf806203756533b55c938947ad15;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4 diff --git a/platform/win32/functions/threads/mtx_trylock.c b/platform/win32/functions/threads/mtx_trylock.c index ebc5e85..753dd6e 100644 --- a/platform/win32/functions/threads/mtx_trylock.c +++ b/platform/win32/functions/threads/mtx_trylock.c @@ -6,7 +6,7 @@ int mtx_trylock(mtx_t *mtx) { DWORD myId = GetCurrentThreadId(); - if(mtx->_ThreadId == myId) { + if(mtx->_ThreadId == (long) myId) { mtx->_NestCount++; return thrd_success; } @@ -23,7 +23,7 @@ int mtx_trylock(mtx_t *mtx) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {