summaryrefslogtreecommitdiff
path: root/gdk/win32
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-10-27 17:16:46 +0200
committerAlexander Larsson <alexl@redhat.com>2011-11-10 17:41:07 +0100
commit2788efeb5e4ac957f71fc1da32059beb8b150293 (patch)
tree90095e69295e5df9007cac752e85365b5340db4f /gdk/win32
parenta1828e8b60321c0c8951ab00029ae9cb6ab51928 (diff)
downloadgtk+-2788efeb5e4ac957f71fc1da32059beb8b150293.tar.gz
win32: Don't use API_CALL for SetWindowLong
This can return 0 without it being an error. Should fix the last issue with bug #142874
Diffstat (limited to 'gdk/win32')
-rw-r--r--gdk/win32/gdkwindow-win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 35ec5a6545..68d58c0cc4 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3184,9 +3184,9 @@ gdk_win32_window_set_opacity (GdkWindow *window,
exstyle = GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE);
if (!(exstyle & WS_EX_LAYERED))
- API_CALL (SetWindowLong, (GDK_WINDOW_HWND (window),
- GWL_EXSTYLE,
- exstyle | WS_EX_LAYERED));
+ SetWindowLong (GDK_WINDOW_HWND (window),
+ GWL_EXSTYLE,
+ exstyle | WS_EX_LAYERED);
setLayeredWindowAttributes =
(PFN_SetLayeredWindowAttributes)GetProcAddress (GetModuleHandle ("user32.dll"), "SetLayeredWindowAttributes");