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
a3b8e944
Commit
a3b8e944
authored
Dec 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Avoid calling some kernel32 functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71571608
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
registry.c
dlls/kernelbase/registry.c
+5
-5
thread.c
dlls/kernelbase/thread.c
+2
-2
No files found.
dlls/kernelbase/registry.c
View file @
a3b8e944
...
...
@@ -2687,10 +2687,10 @@ static LONG load_mui_string(const WCHAR *file_name, UINT res_id, WCHAR *buffer,
return
ERROR_NOT_ENOUGH_MEMORY
;
GetFullPathNameW
(
file_name
,
size
,
full_name
,
NULL
);
EnterCriticalSection
(
&
reg_mui_cs
);
Rtl
EnterCriticalSection
(
&
reg_mui_cs
);
size
=
reg_mui_cache_get
(
full_name
,
res_id
,
&
string
);
if
(
!
size
)
{
LeaveCriticalSection
(
&
reg_mui_cs
);
Rtl
LeaveCriticalSection
(
&
reg_mui_cs
);
/* Load the file */
hModule
=
LoadLibraryExW
(
full_name
,
NULL
,
...
...
@@ -2705,9 +2705,9 @@ static LONG load_mui_string(const WCHAR *file_name, UINT res_id, WCHAR *buffer,
goto
cleanup
;
}
EnterCriticalSection
(
&
reg_mui_cs
);
Rtl
EnterCriticalSection
(
&
reg_mui_cs
);
reg_mui_cache_put
(
full_name
,
res_id
,
string
,
size
);
LeaveCriticalSection
(
&
reg_mui_cs
);
Rtl
LeaveCriticalSection
(
&
reg_mui_cs
);
}
*
req_chars
=
size
+
1
;
...
...
@@ -2739,7 +2739,7 @@ cleanup:
if
(
hModule
)
FreeLibrary
(
hModule
);
else
LeaveCriticalSection
(
&
reg_mui_cs
);
Rtl
LeaveCriticalSection
(
&
reg_mui_cs
);
heap_free
(
full_name
);
return
result
;
}
...
...
dlls/kernelbase/thread.c
View file @
a3b8e944
...
...
@@ -866,7 +866,7 @@ static void CDECL start_fiber(void)
__TRY
{
start
(
fiber
->
param
);
Exit
Thread
(
1
);
RtlExitUser
Thread
(
1
);
}
__EXCEPT
(
UnhandledExceptionFilter
)
{
...
...
@@ -996,7 +996,7 @@ void WINAPI DECLSPEC_HOTPATCH DeleteFiber( LPVOID fiber_ptr )
if
(
fiber
==
NtCurrentTeb
()
->
Tib
.
u
.
FiberData
)
{
HeapFree
(
GetProcessHeap
(),
0
,
fiber
);
ExitThread
(
1
);
RtlExitUserThread
(
1
);
}
RtlFreeUserStack
(
fiber
->
stack_allocation
);
HeapFree
(
GetProcessHeap
(),
0
,
fiber
->
fls_slots
);
...
...
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