Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a812374a
Commit
a812374a
authored
Dec 20, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Preserve last error when loading debug functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b4a1d80a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
debug.c
dlls/winecrt0/debug.c
+2
-0
No files found.
dlls/winecrt0/debug.c
View file @
a812374a
...
...
@@ -50,9 +50,11 @@ static void load_func( void **func, const char *name, void *def )
{
if
(
!*
func
)
{
DWORD
err
=
GetLastError
();
HMODULE
module
=
GetModuleHandleA
(
"ntdll.dll"
);
void
*
proc
=
GetProcAddress
(
module
,
name
);
InterlockedExchangePointer
(
func
,
proc
?
proc
:
def
);
SetLastError
(
err
);
}
}
#define LOAD_FUNC(name) load_func( (void **)&p ## name, #name, fallback ## name )
...
...
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