]> granicus.if.org Git - vim/commitdiff
Define the WOW64 key when needed.
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2010 17:50:25 +0000 (19:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2010 17:50:25 +0000 (19:50 +0200)
src/if_ole.cpp

index 44a35682a7ef74c9614c2cef7339159e50cdeecc..ca8218213693926a7652f07a332063219bd7adc2 100644 (file)
@@ -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
 *****************************************************************************/