aboutsummaryrefslogtreecommitdiff
path: root/c/win.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-09-02 01:21:58 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-09-02 01:21:58 +0200
commitbb9280267bfb78a8d69adea02f5ed7894833b19d (patch)
tree7cda0c2d80afafb046790955711eb5af1582ebdc /c/win.h
parentc624a89b4f1cccfefd60424a3181d76e4692fa4d (diff)
downloadEpisodeBrowser-bb9280267bfb78a8d69adea02f5ed7894833b19d.tar.gz
Improve Windows XP compatibility.
Various bug fixes.
Diffstat (limited to 'c/win.h')
-rw-r--r--c/win.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/win.h b/c/win.h
index 8329f68..1e09c1f 100644
--- a/c/win.h
+++ b/c/win.h
@@ -133,14 +133,14 @@ inline BOOL SetWindowRect(const HWND hWnd, const RECT r)
* uxtheme.dll exists, and otherwise do nothing. */
inline BOOL EBIsThemeActive()
{
- extern BOOL (*IsThemeActive)();
+ extern BOOL (__stdcall *IsThemeActive)();
return IsThemeActive? IsThemeActive(): 0;
}
-inline BOOL EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName,
+inline HRESULT EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName,
const wchar_t* const pszSubIdList)
{
- extern BOOL (*SetWindowTheme)(HWND, const wchar_t*, const wchar_t*);
+ extern HRESULT (__stdcall *SetWindowTheme)(HWND, const wchar_t*, const wchar_t*);
return SetWindowTheme? SetWindowTheme(hWnd, pszSubAppName, pszSubIdList): 0;
}