[rtmpdump] [PATCH] Fix thread.c compiler warning
Steven Penny
svnpenn at gmail.com
Mon Nov 19 18:58:34 CET 2012
thread.c: In function `ThreadCreate':
thread.c:35:11: warning: comparison between pointer and integer
http://stackoverflow.com/q/3905538/testing-for-an-invalid-windows-handle-should
---
thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/thread.c b/thread.c
index 0913c98..13d624a 100644
--- a/thread.c
+++ b/thread.c
@@ -32,7 +32,7 @@ ThreadCreate(thrfunc *routine, void *args)
HANDLE thd;
thd = (HANDLE) _beginthread(routine, 0, args);
- if (thd == -1L)
+ if (thd == INVALID_HANDLE_VALUE)
RTMP_LogPrintf("%s, _beginthread failed with %d\n", __FUNCTION__, errno);
return thd;
--
1.7.9
More information about the rtmpdump
mailing list