diff --git a/src/xpdev/threadwrap.h b/src/xpdev/threadwrap.h
index a2098ad519285bba00bf04bba7da8b95c737b522..cc6cdc8098eae4a434b7b73322a1f8b20295557e 100644
--- a/src/xpdev/threadwrap.h
+++ b/src/xpdev/threadwrap.h
@@ -75,7 +75,7 @@ extern "C" {
 
 	#else	/* Implemented as Win32 Critical Sections */
 
-		typedef intptr_t pthread_mutex_t;
+		typedef CRITICAL_SECTION pthread_mutex_t;
 
 	#endif