Fixed missing return value checks

This commit is contained in:
Armin Novak 2021-06-16 10:54:31 +02:00 committed by akallabeth
parent ccfe0c129e
commit 670cf8512b
2 changed files with 7 additions and 8 deletions

View File

@ -140,8 +140,7 @@ BOOL wlf_handle_pointer_axis(freerdp* instance, const UwacPointerAxisEvent* ev)
return FALSE; return FALSE;
context = (wlfContext*)instance->context; context = (wlfContext*)instance->context;
ArrayList_Append(context->events, ev); return ArrayList_Append(context->events, ev);
return TRUE;
} }
BOOL wlf_handle_pointer_axis_discrete(freerdp* instance, const UwacPointerAxisEvent* ev) BOOL wlf_handle_pointer_axis_discrete(freerdp* instance, const UwacPointerAxisEvent* ev)
@ -151,8 +150,7 @@ BOOL wlf_handle_pointer_axis_discrete(freerdp* instance, const UwacPointerAxisEv
return FALSE; return FALSE;
context = (wlfContext*)instance->context; context = (wlfContext*)instance->context;
ArrayList_Append(context->events, ev); return ArrayList_Append(context->events, ev);
return TRUE;
} }
static BOOL wlf_handle_wheel(freerdp* instance, uint32_t x, uint32_t y, uint32_t axis, static BOOL wlf_handle_wheel(freerdp* instance, uint32_t x, uint32_t y, uint32_t axis,
@ -289,8 +287,7 @@ BOOL wlf_handle_pointer_source(freerdp* instance, const UwacPointerSourceEvent*
return FALSE; return FALSE;
context = (wlfContext*)instance->context; context = (wlfContext*)instance->context;
ArrayList_Append(context->events, ev); return ArrayList_Append(context->events, ev);
return TRUE;
} }
BOOL wlf_handle_key(freerdp* instance, const UwacKeyEvent* ev) BOOL wlf_handle_key(freerdp* instance, const UwacKeyEvent* ev)

View File

@ -433,6 +433,7 @@ static BOOL wf_rail_window_common(rdpContext* context, const WINDOW_ORDER_INFO*
if (fieldFlags & WINDOW_ORDER_STATE_NEW) if (fieldFlags & WINDOW_ORDER_STATE_NEW)
{ {
BOOL rc;
HANDLE hInstance; HANDLE hInstance;
WCHAR* titleW = NULL; WCHAR* titleW = NULL;
WNDCLASSEX wndClassEx; WNDCLASSEX wndClassEx;
@ -525,10 +526,11 @@ static BOOL wf_rail_window_common(rdpContext* context, const WINDOW_ORDER_INFO*
} }
SetWindowLongPtr(railWindow->hWnd, GWLP_USERDATA, (LONG_PTR)railWindow); SetWindowLongPtr(railWindow->hWnd, GWLP_USERDATA, (LONG_PTR)railWindow);
HashTable_Insert(wfc->railWindows, (void*)(UINT_PTR)orderInfo->windowId, (void*)railWindow); rc = HashTable_Insert(wfc->railWindows, (void*)(UINT_PTR)orderInfo->windowId,
(void*)railWindow);
free(titleW); free(titleW);
UpdateWindow(railWindow->hWnd); UpdateWindow(railWindow->hWnd);
return TRUE; return rc;
} }
else else
{ {