diff --git a/src/dosinst.h b/src/dosinst.h
index b33426ad78d7058a13755db070cba8ebed433948..444af45b2a382d305f409914982b68840ecad98b 100644
--- a/src/dosinst.h
+++ b/src/dosinst.h
@@ -89,6 +89,7 @@ char *searchpath(char *name);
  */
 # ifndef KEY_WOW64_64KEY
 #  define KEY_WOW64_64KEY 0x0100
+#  define RegDeleteKeyEx(a, b, c, d) RegDeleteKey(a, b)
 # endif
 
 #define VIM_STARTMENU "Programs\\Vim " VIM_VERSION_SHORT
diff --git a/src/if_ole.cpp b/src/if_ole.cpp
index ca8218213693926a7652f07a332063219bd7adc2..ff9e371a70edef9a36ce4f4a42b1d1ceecd82661 100644
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -91,6 +91,7 @@ static CVim *app = 0;
  */
 # ifndef KEY_WOW64_64KEY
 #  define KEY_WOW64_64KEY 0x0100
+#  define RegDeleteKeyEx(a, b, c, d) RegDeleteKey(a, b)
 # endif
 
 /*****************************************************************************