fix usage of InterlockedIncrement

svn path=/branches/ros-amd64-bringup/; revision=36605
This commit is contained in:
Timo Kreuzer
2008-10-01 09:44:53 +00:00
parent f5ab6f6e18
commit de42bbb865
+1 -1
View File
@@ -786,7 +786,7 @@ xmlOnceInit(void) {
#if defined(HAVE_WIN32_THREADS)
if (!run_once.done) {
if (InterlockedIncrement(&run_once.control) == 1)
if (InterlockedIncrement((PLONG)&run_once.control) == 1)
{
#if !defined(HAVE_COMPILER_TLS)
globalkey = TlsAlloc();