From a8b92fc819753c757ca8bc66359d091e16e24642 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 2 Jul 2013 17:59:00 +0200 Subject: Fix parameter type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SendMessageTimeout takes a PDWORD_PTR This fixes compilation on 64 bit. Change-Id: I5eb1e7fee0c19b48d7f294c1703c104a79ab17ea Reviewed-by: Jan Arve Sæther Reviewed-by: Kai Koehne --- src/libs/installer/environmentvariablesoperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/installer/environmentvariablesoperation.cpp b/src/libs/installer/environmentvariablesoperation.cpp index 192272a8d..e66c6fc0d 100644 --- a/src/libs/installer/environmentvariablesoperation.cpp +++ b/src/libs/installer/environmentvariablesoperation.cpp @@ -71,7 +71,7 @@ static bool broadcastChange() { // Use SendMessageTimeout to Broadcast a message to the whole system to update settings of all // running applications. This is needed to activate the changes done above without logout+login. // Note that cmd.exe does not respond to any WM_SETTINGCHANGE messages... - DWORD aResult = 0; + DWORD_PTR aResult = 0; LRESULT sendresult = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) "Environment", SMTO_BLOCK | SMTO_ABORTIFHUNG, 5000, &aResult); if (sendresult == 0 || aResult != 0) { -- cgit v1.2.3