summaryrefslogtreecommitdiff
path: root/src/if_ole.cpp
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-01 13:25:05 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-01 13:25:05 +0200
commita621a038392cd249c179c987bbc33f59f2b91dfe (patch)
treee211a5d5a18923f0c6fbeb15bda1b0c33281fad3 /src/if_ole.cpp
parent760d14a55cb2b60bd048246690d17348b4cd0fdf (diff)
downloadvim-git-a621a038392cd249c179c987bbc33f59f2b91dfe.tar.gz
Add the WOW64 flag back to OLE registration. (untested)
Diffstat (limited to 'src/if_ole.cpp')
-rw-r--r--src/if_ole.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_ole.cpp b/src/if_ole.cpp
index 53c12de27..44a35682a 100644
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -158,7 +158,7 @@ CVim *CVim::Create(int *pbDoRestart)
// RegCreateKeyEx succeeds even if key exists. W.Briscoe W2K 20021011
if (RegCreateKeyEx(HKEY_CLASSES_ROOT, MYVIPROGID, 0, NULL,
REG_OPTION_NON_VOLATILE,
- KEY_ALL_ACCESS, NULL, &hKey, NULL))
+ KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL, &hKey, NULL))
{
delete me;
return NULL; // Unable to write to registry. Quietly fail.
@@ -651,7 +651,7 @@ static void RecursiveDeleteKey(HKEY hKeyParent, const char *child)
// Open the child
HKEY hKeyChild;
LONG result = RegOpenKeyEx(hKeyParent, child, 0,
- KEY_ALL_ACCESS, &hKeyChild);
+ KEY_WOW64_64KEY | KEY_ALL_ACCESS, &hKeyChild);
if (result != ERROR_SUCCESS)
return;
@@ -694,7 +694,7 @@ static void SetKeyAndValue(const char *key, const char *subkey, const char *valu
long result = RegCreateKeyEx(HKEY_CLASSES_ROOT,
buffer,
0, NULL, REG_OPTION_NON_VOLATILE,
- KEY_ALL_ACCESS, NULL,
+ KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL,
&hKey, NULL);
if (result != ERROR_SUCCESS)
return;