[gimp] Fix some compile warnings on Microsoft Windows



commit 17b36d3bec957bd2e3ff74f828bb44bbed56be95
Author: Michael Schumacher <schumaml gmx de>
Date:   Sat Dec 19 09:29:07 2009 +0100

    Fix some compile warnings on Microsoft Windows
    
    Added WPARAM and LPARAM cast to SendMessage arguments 3 and 4.

 app/unique.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/unique.c b/app/unique.c
index 836e88c..8037dfd 100644
--- a/app/unique.c
+++ b/app/unique.c
@@ -211,7 +211,7 @@ gimp_unique_win32_open (const gchar **filenames,
                   copydata.dwData = (long) as_new;
 
                   SendMessage (window_handle,
-                               WM_COPYDATA, window_handle, &copydata);
+                               WM_COPYDATA, (WPARAM) window_handle, (LPARAM) &copydata);
                 }
               else
                 {
@@ -225,7 +225,7 @@ gimp_unique_win32_open (const gchar **filenames,
       else
         {
           SendMessage (window_handle,
-                       WM_COPYDATA, window_handle, &copydata);
+                       WM_COPYDATA, (WPARAM) window_handle, (LPARAM) &copydata);
         }
 
       return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]