Mercurial > vim
diff src/if_ole.cpp @ 2449:943280505f72 vim73
Fix that uninstaller isn't found on 64-bit Windows.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 31 Jul 2010 22:03:44 +0200 |
parents | 499bff609a86 |
children | 7e9da593951d |
line wrap: on
line diff
--- a/src/if_ole.cpp +++ b/src/if_ole.cpp @@ -50,14 +50,6 @@ WINOLEAUTAPI UnRegisterTypeLib(REFGUID l WORD wVerMinor, LCID lcid, SYSKIND syskind); #endif -/* - * 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 - /***************************************************************************** 1. Internal definitions for this file *****************************************************************************/ @@ -166,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_WOW64_64KEY | KEY_ALL_ACCESS, NULL, &hKey, NULL)) + KEY_ALL_ACCESS, NULL, &hKey, NULL)) { delete me; return NULL; // Unable to write to registry. Quietly fail. @@ -658,7 +650,8 @@ static void RecursiveDeleteKey(HKEY hKey { // Open the child HKEY hKeyChild; - LONG result = RegOpenKeyEx(hKeyParent, child, 0, KEY_ALL_ACCESS, &hKeyChild); + LONG result = RegOpenKeyEx(hKeyParent, child, 0, + KEY_ALL_ACCESS, &hKeyChild); if (result != ERROR_SUCCESS) return; @@ -701,7 +694,7 @@ static void SetKeyAndValue(const char *k long result = RegCreateKeyEx(HKEY_CLASSES_ROOT, buffer, 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL, + KEY_ALL_ACCESS, NULL, &hKey, NULL); if (result != ERROR_SUCCESS) return;