diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-08-13 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:56 +0300 |
commit | 173c07e166fdf6fcd20f18ea73008f1b628945df (patch) | |
tree | 13ebea85cdc4c16ae93714ff0627ee9f91ad7e08 /CPP/7zip/UI/Explorer/DllExports.cpp | |
parent | 3901bf0ab88106a5b031cba7bc18d60cdebf7eef (diff) |
4.59 beta
Diffstat (limited to 'CPP/7zip/UI/Explorer/DllExports.cpp')
-rwxr-xr-x | CPP/7zip/UI/Explorer/DllExports.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/CPP/7zip/UI/Explorer/DllExports.cpp b/CPP/7zip/UI/Explorer/DllExports.cpp index 6072e92a..6fed7cda 100755 --- a/CPP/7zip/UI/Explorer/DllExports.cpp +++ b/CPP/7zip/UI/Explorer/DllExports.cpp @@ -42,8 +42,8 @@ static LPCTSTR kApprovedKeyPath = TEXT("Software\\Microsoft\\Windows\\CurrentVer // #define ODS(sz) OutputDebugString(L#sz) -class CShellExtClassFactory: - public IClassFactory, +class CShellExtClassFactory: + public IClassFactory, public CMyUnknownImp { public: @@ -89,7 +89,7 @@ static bool IsItWindowsNT() { OSVERSIONINFO versionInfo; versionInfo.dwOSVersionInfoSize = sizeof(versionInfo); - if (!::GetVersionEx(&versionInfo)) + if (!::GetVersionEx(&versionInfo)) return false; return (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT); } @@ -107,7 +107,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID) return FALSE; #else g_IsNT = IsItWindowsNT(); - #endif + #endif } else if (dwReason == DLL_PROCESS_DETACH) { @@ -183,7 +183,7 @@ static BOOL RegisterServer(CLSID clsid, LPCWSTR title) if (!NDLL::MyGetModuleFileName(g_hInstance, modulePath)) return FALSE; - CRegItem clsidEntries[] = + CRegItem clsidEntries[] = { HKEY_CLASSES_ROOT, kClsidMask, NULL, title, HKEY_CLASSES_ROOT, kClsidInprocMask, NULL, modulePath, @@ -197,7 +197,7 @@ static BOOL RegisterServer(CLSID clsid, LPCWSTR title) TCHAR subKey[MAX_PATH]; wsprintf(subKey, clsidEntries[i].SubKey, clsidString); NRegistry::CKey key; - if (key.Create(clsidEntries[i].hRootKey, subKey, NULL, + if (key.Create(clsidEntries[i].hRootKey, subKey, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE) != NOERROR) return FALSE; key.SetValue(clsidEntries[i].ValueName, clsidEntries[i].Data); @@ -206,7 +206,7 @@ static BOOL RegisterServer(CLSID clsid, LPCWSTR title) if(IsItWindowsNT()) { NRegistry::CKey key; - if (key.Create(HKEY_LOCAL_MACHINE, kApprovedKeyPath, NULL, + if (key.Create(HKEY_LOCAL_MACHINE, kApprovedKeyPath, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE) == NOERROR) key.SetValue(GetUnicodeString(clsidString), title); } @@ -249,8 +249,8 @@ STDAPI DllUnregisterServer(void) } STDAPI CreateObject( - const GUID *classID, - const GUID *interfaceID, + const GUID *classID, + const GUID *interfaceID, void **outObject) { LoadLangOneTime(); |