From 1f5986eb53b26a4d05be63796c24184d73b62656 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 5 Apr 2011 10:50:20 +0200 Subject: wfdapi: CreateEvent: allow PIPELINE_BIND_QUEUE_SIZE attrib --- src/wfdapi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wfdapi.c b/src/wfdapi.c index c6ff5bc..96bb6b6 100644 --- a/src/wfdapi.c +++ b/src/wfdapi.c @@ -219,7 +219,6 @@ wfdCreateEvent(WFDDevice device_handle, struct wfd_device *device; struct wfd_event *event; WFDPort event_handle; - WFDErrorCode error; DPRINT(("wfdCreateEvent(%08x,%p)", device_handle, attribList)); @@ -228,8 +227,11 @@ wfdCreateEvent(WFDDevice device_handle, return WFD_INVALID_HANDLE; if (attribList != NULL && attribList[0] != WFD_NONE) { - wfd_device_set_error(device, WFD_ERROR_BAD_ATTRIBUTE); - return WFD_INVALID_HANDLE; + if (attribList[0] != WFD_EVENT_PIPELINE_BIND_QUEUE_SIZE || + attribList[2] != WFD_NONE) { + wfd_device_set_error(device, WFD_ERROR_BAD_ATTRIBUTE); + return WFD_INVALID_HANDLE; + } } event = wfd_create_event(device, attribList); -- cgit v1.2.3