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)
if (!wglDeleteContext(ctx->gl_ctx))
{
DWORD err = GetLastError();
unsigned int err = GetLastError();
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)
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;
......
......@@ -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);
}
......
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