diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 19:25:35 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 19:25:35 +0200 |
| commit | 8b5755851611574fd4010d9fa4e1046b78a501b9 (patch) | |
| tree | 84817c8bea211c099d72967470a1f054ece707c6 /widgetfactory.cpp | |
| parent | 536ea04c34ba761d7031eeabb6d50adab0f0f2bd (diff) | |
make it build with -Wconversion
Diffstat (limited to 'widgetfactory.cpp')
| -rw-r--r-- | widgetfactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp index dc343e6..5ef96f1 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -34,7 +34,7 @@ handleMessage(void *closure, HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) (void)closure; if (msg == WM_CTLCOLORSTATIC) { - DWORD id = GetDlgCtrlID((HWND)lparam); + WORD id = (WORD)GetDlgCtrlID((HWND)lparam); HDC hdcStatic = (HDC)wparam; if (id == ID_LBLHELLO) { SetTextColor(hdcStatic, RGB(0,0,0)); @@ -232,7 +232,7 @@ WinMain void _entry(void) { - ExitProcess( + ExitProcess((UINT) #ifdef UNICODE wWinMain #else |
