diff --git a/lib/sntllv2.c b/lib/sntllv2.c index 6af0d36..776f67d 100644 --- a/lib/sntllv2.c +++ b/lib/sntllv2.c @@ -344,7 +344,11 @@ static void pthreads_locking_callback(int mode, int type, const char *file, int static void pthreads_thread_id(CRYPTO_THREADID *tid) { +#ifdef WIN32 + CRYPTO_THREADID_set_numeric(tid, (unsigned long)GetCurrentThreadId()); +#else CRYPTO_THREADID_set_numeric(tid, (unsigned long)pthread_self()); +#endif } int sntl_init(void) diff --git a/tests/lv2sc.c b/tests/lv2sc.c index 999f2cc..76a5e77 100644 --- a/tests/lv2sc.c +++ b/tests/lv2sc.c @@ -247,7 +247,7 @@ int main(int argc, char **argv) (char *)sxmsg_payload(msg)); mr = sxmsg_return(msg, SNE_SUCCESS); fprintf(stderr, "mr = %d\n", mr); - break; + brebak; case SNE_SUCCESS: fprintf(stdout, "Success.\n"); break;