From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WTF/wtf/WindowsExtras.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Source/WTF/wtf/WindowsExtras.h') diff --git a/Source/WTF/wtf/WindowsExtras.h b/Source/WTF/wtf/WindowsExtras.h index 16bc86596..061db5379 100644 --- a/Source/WTF/wtf/WindowsExtras.h +++ b/Source/WTF/wtf/WindowsExtras.h @@ -39,34 +39,17 @@ namespace WTF { inline HRESULT getRegistryValue(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValue, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData) { -#if OS(WINCE) - HKEY key; - if (::RegOpenKeyExW(hkey, pszSubKey, 0, 0, &key) != ERROR_SUCCESS) - return ERROR_INVALID_NAME; - HRESULT result = ::RegQueryValueExW(key, pszValue, 0, pdwType, static_cast(pvData), pcbData); - ::RegCloseKey(key); - return result; -#else return ::SHGetValueW(hkey, pszSubKey, pszValue, pdwType, pvData, pcbData); -#endif } inline void* getWindowPointer(HWND hWnd, int index) { -#if OS(WINCE) - return reinterpret_cast(::GetWindowLong(hWnd, index)); -#else return reinterpret_cast(::GetWindowLongPtr(hWnd, index)); -#endif } inline void* setWindowPointer(HWND hWnd, int index, void* value) { -#if OS(WINCE) - return reinterpret_cast(::SetWindowLong(hWnd, index, reinterpret_cast(value))); -#else return reinterpret_cast(::SetWindowLongPtr(hWnd, index, reinterpret_cast(value))); -#endif } } // namespace WTF -- cgit v1.2.1