ecore_win32: silent warning by reading the returned value in a useful way.

This commit is contained in:
Cedric BAIL 2014-06-27 13:27:33 +02:00
parent 546af159ff
commit a449ca47f1
1 changed files with 7 additions and 5 deletions

View File

@ -455,12 +455,14 @@ _ecore_win32_window_procedure(HWND window,
if (GetUpdateRect(window, &rect, FALSE))
{
PAINTSTRUCT ps;
HDC hdc;
hdc = BeginPaint(window, &ps);
data->update = rect;
_ecore_win32_event_handle_expose(data);
EndPaint(window, &ps);
/* No need to get a variable, just checking if it succeed HDC hdc; */
if (!BeginPaint(window, &ps))
{
data->update = rect;
_ecore_win32_event_handle_expose(data);
EndPaint(window, &ps);
}
}
return 0;
}