Module: wine Branch: master Commit: 6febb8fda8583ba4fc9f451ebd3fa754b397fc96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6febb8fda8583ba4fc9f451ebd...
Author: James Hawkins jhawkins@codeweavers.com Date: Sat Mar 1 02:06:54 2008 -0600
msi: Remove a pointless wrapper of RegCreateKey.
---
dlls/msi/registry.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index a3b63b5..1d41e65 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -808,11 +808,6 @@ UINT MSIREG_DeleteUserDataProductKey(LPCWSTR szProduct) return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath); }
-UINT MSIREG_OpenProducts(HKEY* key) -{ - return RegCreateKeyW(HKEY_LOCAL_MACHINE,szInstaller_Products,key); -} - UINT MSIREG_OpenProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create) { UINT rc; @@ -1137,7 +1132,7 @@ UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid) if (NULL == lpguid) return ERROR_INVALID_PARAMETER;
- r = MSIREG_OpenProducts(&hkeyProducts); + r = RegCreateKeyW(HKEY_LOCAL_MACHINE, szInstaller_Products, &hkeyProducts); if( r != ERROR_SUCCESS ) return ERROR_NO_MORE_ITEMS;