From: Eric Pouech eric.pouech@gmail.com
Signed-off-by: Eric Pouech eric.pouech@gmail.com --- dlls/wined3d/adapter_gl.c | 2 +- dlls/wined3d/context_gl.c | 4 ++-- dlls/wined3d/wined3d_main.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c index 2d2867b638e..8353a10a87a 100644 --- a/dlls/wined3d/adapter_gl.c +++ b/dlls/wined3d/adapter_gl.c @@ -264,7 +264,7 @@ static void wined3d_caps_gl_ctx_destroy(const struct wined3d_caps_gl_ctx *ctx)
if (!wglDeleteContext(ctx->gl_ctx)) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("wglDeleteContext(%p) failed, last error %#x.\n", ctx->gl_ctx, err); }
diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c index 9ddcc9a40d2..689b76fe64e 100644 --- a/dlls/wined3d/context_gl.c +++ b/dlls/wined3d/context_gl.c @@ -1543,7 +1543,7 @@ static void wined3d_context_gl_cleanup(struct wined3d_context_gl *context_gl)
if (!wglDeleteContext(context_gl->gl_ctx)) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("Failed to delete GL context %p, last error %#x.\n", context_gl->gl_ctx, err); }
@@ -1615,7 +1615,7 @@ BOOL wined3d_context_gl_set_current(struct wined3d_context_gl *context_gl) TRACE("Clearing current D3D context.\n"); if (!wglMakeCurrent(NULL, NULL)) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("Failed to clear current GL context, last error %#x.\n", err); TlsSetValue(wined3d_context_tls_idx, NULL); return FALSE; diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index b52891c631e..2837503f574 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -275,7 +275,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL) wined3d_context_tls_idx = TlsAlloc(); if (wined3d_context_tls_idx == TLS_OUT_OF_INDEXES) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("Failed to allocate context TLS index, err %#x.\n", err); return FALSE; } @@ -300,7 +300,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL) ERR("Failed to register window class 'WineD3D_OpenGL'!\n"); if (!TlsFree(wined3d_context_tls_idx)) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("Failed to free context TLS index, err %#x.\n", err); } return FALSE; @@ -502,7 +502,7 @@ static BOOL wined3d_dll_destroy(HINSTANCE hInstDLL)
if (!TlsFree(wined3d_context_tls_idx)) { - DWORD err = GetLastError(); + unsigned int err = GetLastError(); ERR("Failed to free context TLS index, err %#x.\n", err); }