Commit 13848df4 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wined3d: Store GetLastError() into an unsigned int.

parent a942b560
...@@ -264,7 +264,7 @@ static void wined3d_caps_gl_ctx_destroy(const struct wined3d_caps_gl_ctx *ctx) ...@@ -264,7 +264,7 @@ static void wined3d_caps_gl_ctx_destroy(const struct wined3d_caps_gl_ctx *ctx)
if (!wglDeleteContext(ctx->gl_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); ERR("wglDeleteContext(%p) failed, last error %#x.\n", ctx->gl_ctx, err);
} }
......
...@@ -1543,7 +1543,7 @@ static void wined3d_context_gl_cleanup(struct wined3d_context_gl *context_gl) ...@@ -1543,7 +1543,7 @@ static void wined3d_context_gl_cleanup(struct wined3d_context_gl *context_gl)
if (!wglDeleteContext(context_gl->gl_ctx)) 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); 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) ...@@ -1615,7 +1615,7 @@ BOOL wined3d_context_gl_set_current(struct wined3d_context_gl *context_gl)
TRACE("Clearing current D3D context.\n"); TRACE("Clearing current D3D context.\n");
if (!wglMakeCurrent(NULL, NULL)) if (!wglMakeCurrent(NULL, NULL))
{ {
DWORD err = GetLastError(); unsigned int err = GetLastError();
ERR("Failed to clear current GL context, last error %#x.\n", err); ERR("Failed to clear current GL context, last error %#x.\n", err);
TlsSetValue(wined3d_context_tls_idx, NULL); TlsSetValue(wined3d_context_tls_idx, NULL);
return FALSE; return FALSE;
......
...@@ -275,7 +275,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL) ...@@ -275,7 +275,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
wined3d_context_tls_idx = TlsAlloc(); wined3d_context_tls_idx = TlsAlloc();
if (wined3d_context_tls_idx == TLS_OUT_OF_INDEXES) 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); ERR("Failed to allocate context TLS index, err %#x.\n", err);
return FALSE; return FALSE;
} }
...@@ -300,7 +300,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL) ...@@ -300,7 +300,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
ERR("Failed to register window class 'WineD3D_OpenGL'!\n"); ERR("Failed to register window class 'WineD3D_OpenGL'!\n");
if (!TlsFree(wined3d_context_tls_idx)) if (!TlsFree(wined3d_context_tls_idx))
{ {
DWORD err = GetLastError(); unsigned int err = GetLastError();
ERR("Failed to free context TLS index, err %#x.\n", err); ERR("Failed to free context TLS index, err %#x.\n", err);
} }
return FALSE; return FALSE;
...@@ -502,7 +502,7 @@ static BOOL wined3d_dll_destroy(HINSTANCE hInstDLL) ...@@ -502,7 +502,7 @@ static BOOL wined3d_dll_destroy(HINSTANCE hInstDLL)
if (!TlsFree(wined3d_context_tls_idx)) if (!TlsFree(wined3d_context_tls_idx))
{ {
DWORD err = GetLastError(); unsigned int err = GetLastError();
ERR("Failed to free context TLS index, err %#x.\n", err); ERR("Failed to free context TLS index, err %#x.\n", err);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment