summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgetfactory.cpp')
-rw-r--r--widgetfactory.cpp4
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