mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
Add the WOW64 flag back to OLE registration. (untested)
This commit is contained in:
@@ -158,7 +158,7 @@ CVim *CVim::Create(int *pbDoRestart)
|
|||||||
// RegCreateKeyEx succeeds even if key exists. W.Briscoe W2K 20021011
|
// RegCreateKeyEx succeeds even if key exists. W.Briscoe W2K 20021011
|
||||||
if (RegCreateKeyEx(HKEY_CLASSES_ROOT, MYVIPROGID, 0, NULL,
|
if (RegCreateKeyEx(HKEY_CLASSES_ROOT, MYVIPROGID, 0, NULL,
|
||||||
REG_OPTION_NON_VOLATILE,
|
REG_OPTION_NON_VOLATILE,
|
||||||
KEY_ALL_ACCESS, NULL, &hKey, NULL))
|
KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL, &hKey, NULL))
|
||||||
{
|
{
|
||||||
delete me;
|
delete me;
|
||||||
return NULL; // Unable to write to registry. Quietly fail.
|
return NULL; // Unable to write to registry. Quietly fail.
|
||||||
@@ -651,7 +651,7 @@ static void RecursiveDeleteKey(HKEY hKeyParent, const char *child)
|
|||||||
// Open the child
|
// Open the child
|
||||||
HKEY hKeyChild;
|
HKEY hKeyChild;
|
||||||
LONG result = RegOpenKeyEx(hKeyParent, child, 0,
|
LONG result = RegOpenKeyEx(hKeyParent, child, 0,
|
||||||
KEY_ALL_ACCESS, &hKeyChild);
|
KEY_WOW64_64KEY | KEY_ALL_ACCESS, &hKeyChild);
|
||||||
if (result != ERROR_SUCCESS)
|
if (result != ERROR_SUCCESS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -694,7 +694,7 @@ static void SetKeyAndValue(const char *key, const char *subkey, const char *valu
|
|||||||
long result = RegCreateKeyEx(HKEY_CLASSES_ROOT,
|
long result = RegCreateKeyEx(HKEY_CLASSES_ROOT,
|
||||||
buffer,
|
buffer,
|
||||||
0, NULL, REG_OPTION_NON_VOLATILE,
|
0, NULL, REG_OPTION_NON_VOLATILE,
|
||||||
KEY_ALL_ACCESS, NULL,
|
KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL,
|
||||||
&hKey, NULL);
|
&hKey, NULL);
|
||||||
if (result != ERROR_SUCCESS)
|
if (result != ERROR_SUCCESS)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user