[gtk+] Bug 578094 - ProcessIdToSessionId needs to be declared as WINAPI



commit c338228a865a73b7ab1f2ad55abcb24ae4ce3014
Author: Tor Lillqvist <tml iki fi>
Date:   Mon Apr 6 15:10:35 2009 +0300

    Bug 578094 - ProcessIdToSessionId needs to be declared as WINAPI
    
    Patch by  Shixin Zeng.
---
 gdk/win32/gdkdisplay-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 8bdb933..75fde08 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -229,7 +229,7 @@ gdk_display_get_name (GdkDisplay *display)
   DWORD session_id;
   char *display_name;
   static const char *display_name_cache = NULL;
-  typedef BOOL (* PFN_ProcessIdToSessionId) (DWORD, DWORD *);
+  typedef BOOL (WINAPI *PFN_ProcessIdToSessionId) (DWORD, DWORD *);
   PFN_ProcessIdToSessionId processIdToSessionId;
 
   g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);



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