diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WTF/wtf/WindowsExtras.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WTF/wtf/WindowsExtras.h')
-rw-r--r-- | Source/WTF/wtf/WindowsExtras.h | 17 |
1 files changed, 0 insertions, 17 deletions
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<LPBYTE>(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<void*>(::GetWindowLong(hWnd, index)); -#else return reinterpret_cast<void*>(::GetWindowLongPtr(hWnd, index)); -#endif } inline void* setWindowPointer(HWND hWnd, int index, void* value) { -#if OS(WINCE) - return reinterpret_cast<void*>(::SetWindowLong(hWnd, index, reinterpret_cast<LONG>(value))); -#else return reinterpret_cast<void*>(::SetWindowLongPtr(hWnd, index, reinterpret_cast<LONG_PTR>(value))); -#endif } } // namespace WTF |