diff src/if_ole.cpp @ 2463:7a537d53b3ed vim73

Define the WOW64 key when needed.
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 19:50:25 +0200
parents 7e9da593951d
children 336d6df580e7
line wrap: on
line diff
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -85,6 +85,14 @@ static CVim *app = 0;
 
 #define MAX_CLSID_LEN 100
 
+/*
+ * Modern way of creating registry entries, also works on 64 bit windows when
+ * compiled as a 32 bit program.
+ */
+# ifndef KEY_WOW64_64KEY
+#  define KEY_WOW64_64KEY 0x0100
+# endif
+
 /*****************************************************************************
  2. The application object
 *****************************************************************************/