From: Eric Bollengier Date: Tue, 20 Jan 2009 15:29:41 +0000 (+0000) Subject: ebl use LPARAM instead of LONG for cast X-Git-Tag: Release-3.0.0~293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=556a569f47384641c001fe0e9b2ffec22d9e7a97;p=bacula%2Fbacula ebl use LPARAM instead of LONG for cast git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8384 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/win32/libwin32/aboutDialog.cpp b/bacula/src/win32/libwin32/aboutDialog.cpp index 8de15e5b06..86804b66eb 100644 --- a/bacula/src/win32/libwin32/aboutDialog.cpp +++ b/bacula/src/win32/libwin32/aboutDialog.cpp @@ -76,6 +76,6 @@ void aboutDialog::show(bool show) { if (show && !m_visible) { DialogBoxParam(appInstance, MAKEINTRESOURCE(IDD_ABOUT), NULL, - (DLGPROC)DialogProc, (LONG)this); + (DLGPROC)DialogProc, (LPARAM)this); } } diff --git a/bacula/src/win32/libwin32/statusDialog.cpp b/bacula/src/win32/libwin32/statusDialog.cpp index f80b5c4888..e1ca04b367 100644 --- a/bacula/src/win32/libwin32/statusDialog.cpp +++ b/bacula/src/win32/libwin32/statusDialog.cpp @@ -110,7 +110,7 @@ static void displayString(const char *msg, int len, void *context) if (*p == '\n') { SendMessage(statDlg->m_textWin, EM_SETSEL, (WPARAM)-1, (LPARAM)-1); - SendMessage(statDlg->m_textWin, EM_REPLACESEL, 0, (LONG)"\r\n"); + SendMessage(statDlg->m_textWin, EM_REPLACESEL, 0, (LPARAM)"\r\n"); } if (*p == '\0'){ @@ -149,7 +149,7 @@ void statusDialog::show(bool show) { if (show && !m_visible) { DialogBoxParam(appInstance, MAKEINTRESOURCE(IDD_STATUS), NULL, - (DLGPROC)dialogProc, (LONG)this); + (DLGPROC)dialogProc, (LPARAM)this); } } diff --git a/bacula/src/win32/libwin32/trayMonitor.cpp b/bacula/src/win32/libwin32/trayMonitor.cpp index 9e46b057de..e015ac7300 100644 --- a/bacula/src/win32/libwin32/trayMonitor.cpp +++ b/bacula/src/win32/libwin32/trayMonitor.cpp @@ -73,7 +73,7 @@ trayMonitor::trayMonitor() } /* Save our class pointer */ - SetWindowLong(m_hwnd, GWL_USERDATA, (LONG)this); + SetWindowLong(m_hwnd, GWL_USERDATA, (LPARAM)this); // Load the icons for the tray