[PATCH 4/5] wined3d: Make the device parameter to wined3d_event_query_finish() const.

Henri Verbeet hverbeet at codeweavers.com
Sun Oct 30 12:06:35 CDT 2011


---
 dlls/wined3d/query.c           |    2 +-
 dlls/wined3d/wined3d_private.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index ae03479..d88d182 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -111,7 +111,7 @@ static enum wined3d_event_query_result wined3d_event_query_test(const struct win
 }
 
 enum wined3d_event_query_result wined3d_event_query_finish(const struct wined3d_event_query *query,
-        struct wined3d_device *device)
+        const struct wined3d_device *device)
 {
     struct wined3d_context *context;
     const struct wined3d_gl_info *gl_info;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 25a24e5..73f1ea1 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1045,7 +1045,7 @@ enum wined3d_event_query_result
 
 void wined3d_event_query_destroy(struct wined3d_event_query *query) DECLSPEC_HIDDEN;
 enum wined3d_event_query_result wined3d_event_query_finish(const struct wined3d_event_query *query,
-        struct wined3d_device *device) DECLSPEC_HIDDEN;
+        const struct wined3d_device *device) DECLSPEC_HIDDEN;
 void wined3d_event_query_issue(struct wined3d_event_query *query, struct wined3d_device *device) DECLSPEC_HIDDEN;
 BOOL wined3d_event_query_supported(const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN;
 
-- 
1.7.3.4




More information about the wine-patches mailing list