diff --git a/Xext/security.c b/Xext/security.c
index c17a438..ef2562d 100644
--- a/Xext/security.c
+++ b/Xext/security.c
@@ -1568,6 +1568,9 @@ SecurityLoadPropertyAccessList(void)
 	return;
 
 #ifndef __UNIXOS2__
+#if defined WIN32 && defined __MINGW32__
+    SecurityPolicyFile = "SecurityPolicy"
+#endif
     f = fopen(SecurityPolicyFile, "r");
 #else
     f = fopen((char*)__XOS2RedirRoot(SecurityPolicyFile), "r");
