Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
13848df4
Commit
13848df4
authored
Dec 03, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store GetLastError() into an unsigned int.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
a942b560
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
adapter_gl.c
dlls/wined3d/adapter_gl.c
+1
-1
context_gl.c
dlls/wined3d/context_gl.c
+2
-2
wined3d_main.c
dlls/wined3d/wined3d_main.c
+3
-3
No files found.
dlls/wined3d/adapter_gl.c
View file @
13848df4
...
...
@@ -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
);
}
...
...
dlls/wined3d/context_gl.c
View file @
13848df4
...
...
@@ -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
;
...
...
dlls/wined3d/wined3d_main.c
View file @
13848df4
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment