]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl use LPARAM instead of LONG for cast
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Jan 2009 15:29:41 +0000 (15:29 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Jan 2009 15:29:41 +0000 (15:29 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8384 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/win32/libwin32/aboutDialog.cpp
bacula/src/win32/libwin32/statusDialog.cpp
bacula/src/win32/libwin32/trayMonitor.cpp

index 8de15e5b067aba44e6736ce6534ec5604a701ee0..86804b66ebf91900f34a6ef778c0a895374dd25a 100644 (file)
@@ -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);
    }
 }
index f80b5c48886acaa4670467255fc7af77487b7cb9..e1ca04b367ce541c5b3bd44b8d177b4f196ebcf1 100644 (file)
@@ -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);
    }
 }
 
index 9e46b057de38aef588be7d84f97fbed4fd2261fb..e015ac73005620623c7717f085260da8504af750 100644 (file)
@@ -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