mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 04:26:32 +00:00
Address more reviewer feedback
This commit is contained in:
parent
3f24fbbb97
commit
a7596c83b9
1 changed files with 12 additions and 9 deletions
|
@ -657,13 +657,16 @@ BOOL WINAPI IsCompositionActive(void)
|
|||
{
|
||||
BOOL bIsCompositionActive;
|
||||
DWMISCOMPOSITIONENABLED pDwmIsCompositionEnabled;
|
||||
HANDLE hdwmapi = GetModuleHandleW(L"dwmapi.dll");
|
||||
HMODULE hdwmapi = GetModuleHandleW(L"dwmapi.dll");
|
||||
|
||||
if (!hdwmapi)
|
||||
{
|
||||
hdwmapi = LoadLibraryW(L"dwmapi.dll");
|
||||
if (!hdwmapi)
|
||||
{
|
||||
ERR("Failed to load dwmapi\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
pDwmIsCompositionEnabled = (DWMISCOMPOSITIONENABLED)GetProcAddress(hdwmapi, "DwmIsCompositionEnabled");
|
||||
}
|
||||
|
@ -875,9 +878,9 @@ HTHEME WINAPI OpenThemeDataFromFile(HTHEMEFILE hThemeFile, HWND hwnd, LPCWSTR ps
|
|||
/***********************************************************************
|
||||
* OpenThemeData (UXTHEME.@)
|
||||
*/
|
||||
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
|
||||
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR pszClassList)
|
||||
{
|
||||
return OpenThemeDataInternal(g_ActiveThemeFile, hwnd, classlist, 0);
|
||||
return OpenThemeDataInternal(g_ActiveThemeFile, hwnd, pszClassList, 0);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -887,11 +890,11 @@ HTHEME
|
|||
WINAPI
|
||||
OpenThemeDataForDpi(
|
||||
_In_ HWND hwnd,
|
||||
_In_ LPCWSTR classlist,
|
||||
_In_ LPCWSTR pszClassList,
|
||||
_In_ UINT dpi)
|
||||
{
|
||||
FIXME("dpi (%x) is currently ignored", dpi);
|
||||
return OpenThemeDataInternal(g_ActiveThemeFile, hwnd, classlist, 0);
|
||||
return OpenThemeDataInternal(g_ActiveThemeFile, hwnd, pszClassList, 0);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -953,11 +956,11 @@ HRESULT
|
|||
WINAPI
|
||||
SetWindowThemeAttribute(
|
||||
_In_ HWND hwnd,
|
||||
_In_ enum WINDOWTHEMEATTRIBUTETYPE type,
|
||||
_In_ PVOID attribute,
|
||||
_In_ DWORD size)
|
||||
_In_ enum WINDOWTHEMEATTRIBUTETYPE eAttribute,
|
||||
_In_ PVOID pvAttribute,
|
||||
_In_ DWORD cbAttribute)
|
||||
{
|
||||
FIXME("(%p,%d,%p,%ld): stub\n", hwnd, type, attribute, size);
|
||||
FIXME("(%p,%d,%p,%ld): stub\n", hwnd, eAttribute, pvAttribute, cbAttribute);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
#endif /* (DLL_EXPORT_VERSION >= _WIN32_WINNT_VISTA) */
|
||||
|
|
Loading…
Reference in a new issue