浏览代码

Settings DWORD with negative integer

-1U is equal to ~0U which is needed to apease the MSVC warning
Matt Clarkson 10 年之前
父节点
当前提交
f6419cb44c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1151,7 +1151,7 @@ static void mg_set_thread_name(const char *name)
 		THREADNAME_INFO info;
 		info.dwType = 0x1000;
 		info.szName = threadName;
-		info.dwThreadID = -1;
+		info.dwThreadID = ~0U;
 		info.dwFlags = 0;
 
 		RaiseException(0x406D1388,