diff --git a/src/libs/utils/process_ctrlc_stub.cpp b/src/libs/utils/process_ctrlc_stub.cpp
index 07e200b9db030113b710431172edaec4e2c9e7bb..04cbd87c9d0dd6f38fb139fecb4e69671ad625c9 100644
--- a/src/libs/utils/process_ctrlc_stub.cpp
+++ b/src/libs/utils/process_ctrlc_stub.cpp
@@ -108,7 +108,7 @@ int main(int argc, char **)
     while (GetMessage(&msg, NULL, 0, 0))
     {
         if (msg.message == WM_DESTROY)
-            dwExitCode = msg.wParam;
+            dwExitCode = static_cast<DWORD>(msg.wParam);
         TranslateMessage(&msg);
         DispatchMessage(&msg);
     }