Bug 578094 - ProcessIdToSessionId needs to be declared as WINAPI

Patch by  Shixin Zeng.
This commit is contained in:
Tor Lillqvist 2009-04-06 15:10:35 +03:00
parent 8ab5f5673b
commit c338228a86

View File

@ -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);