summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorCedric BAIL <c.bail@partner.samsung.com>2014-06-27 13:27:33 +0200
committerCedric BAIL <c.bail@partner.samsung.com>2014-06-27 13:27:33 +0200
commita449ca47f16fcd4917224e85e7114745b9f4a845 (patch)
treec0d6574b13d3bb4082d9c37b804ddc576db93e26 /src/lib/ecore_win32
parent546af159ff479322b2bfac8554bba3f55ce9e739 (diff)
ecore_win32: silent warning by reading the returned value in a useful way.
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/ecore_win32.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c
index 4741a672ac..dbf10cd16f 100644
--- a/src/lib/ecore_win32/ecore_win32.c
+++ b/src/lib/ecore_win32/ecore_win32.c
@@ -455,12 +455,14 @@ _ecore_win32_window_procedure(HWND window,
455 if (GetUpdateRect(window, &rect, FALSE)) 455 if (GetUpdateRect(window, &rect, FALSE))
456 { 456 {
457 PAINTSTRUCT ps; 457 PAINTSTRUCT ps;
458 HDC hdc;
459 458
460 hdc = BeginPaint(window, &ps); 459 /* No need to get a variable, just checking if it succeed HDC hdc; */
461 data->update = rect; 460 if (!BeginPaint(window, &ps))
462 _ecore_win32_event_handle_expose(data); 461 {
463 EndPaint(window, &ps); 462 data->update = rect;
463 _ecore_win32_event_handle_expose(data);
464 EndPaint(window, &ps);
465 }
464 } 466 }
465 return 0; 467 return 0;
466 } 468 }