From cf8707bf2ede99d8543d806355eee088bdc1376b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 6 Aug 2022 01:21:08 +0200 Subject: Use typedefs when interacting with Win32 API. It's not like they're ever going to change the definition of WORD (knock on wood) -- but I guess it's proper to use them as if their definitions might change. --- c/win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/win.cpp') diff --git a/c/win.cpp b/c/win.cpp index 19cfaab..593b340 100644 --- a/c/win.cpp +++ b/c/win.cpp @@ -65,7 +65,7 @@ Library::~Library() FreeLibrary(m_hModule); } -int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, const unsigned uType) +int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, const UINT uType) { extern HWND g_hWnd; @@ -97,7 +97,7 @@ int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, return r; } -int GetRelativeCursorPos(HWND hWnd, POINT* pt) +int GetRelativeCursorPos(const HWND hWnd, POINT* const pt) { RECT rc; if (!GetClientRect(hWnd, &rc)) return 0; -- cgit v1.2.3