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
bec3244f
Commit
bec3244f
authored
Jul 10, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lazy initialisation of thread locale.
parent
4da59ea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
thread.c
scheduler/thread.c
+3
-6
No files found.
scheduler/thread.c
View file @
bec3244f
...
@@ -90,7 +90,6 @@ static BOOL THREAD_InitTEB( TEB *teb )
...
@@ -90,7 +90,6 @@ static BOOL THREAD_InitTEB( TEB *teb )
teb
->
StaticUnicodeString
.
MaximumLength
=
sizeof
(
teb
->
StaticUnicodeBuffer
);
teb
->
StaticUnicodeString
.
MaximumLength
=
sizeof
(
teb
->
StaticUnicodeBuffer
);
teb
->
StaticUnicodeString
.
Buffer
=
(
PWSTR
)
teb
->
StaticUnicodeBuffer
;
teb
->
StaticUnicodeString
.
Buffer
=
(
PWSTR
)
teb
->
StaticUnicodeBuffer
;
teb
->
teb_sel
=
SELECTOR_AllocBlock
(
teb
,
0x1000
,
SEGMENT_DATA
,
TRUE
,
FALSE
);
teb
->
teb_sel
=
SELECTOR_AllocBlock
(
teb
,
0x1000
,
SEGMENT_DATA
,
TRUE
,
FALSE
);
teb
->
CurrentLocale
=
GetUserDefaultLCID
();
/* for threads in user context */
return
(
teb
->
teb_sel
!=
0
);
return
(
teb
->
teb_sel
!=
0
);
}
}
...
@@ -272,10 +271,6 @@ static void THREAD_Start(void)
...
@@ -272,10 +271,6 @@ static void THREAD_Start(void)
/***********************************************************************
/***********************************************************************
* CreateThread (KERNEL32.63)
* CreateThread (KERNEL32.63)
*
* NOTE
* this function is not called for the first thread of a process
* do initializations in THREAD_InitTEB
*/
*/
HANDLE
WINAPI
CreateThread
(
SECURITY_ATTRIBUTES
*
sa
,
DWORD
stack
,
HANDLE
WINAPI
CreateThread
(
SECURITY_ATTRIBUTES
*
sa
,
DWORD
stack
,
LPTHREAD_START_ROUTINE
start
,
LPVOID
param
,
LPTHREAD_START_ROUTINE
start
,
LPVOID
param
,
...
@@ -858,7 +853,9 @@ VOID WINAPI VWin32_BoostThreadStatic( DWORD threadId, INT boost )
...
@@ -858,7 +853,9 @@ VOID WINAPI VWin32_BoostThreadStatic( DWORD threadId, INT boost )
*/
*/
LCID
WINAPI
GetThreadLocale
(
void
)
LCID
WINAPI
GetThreadLocale
(
void
)
{
{
return
NtCurrentTeb
()
->
CurrentLocale
;
LCID
ret
=
NtCurrentTeb
()
->
CurrentLocale
;
if
(
!
ret
)
NtCurrentTeb
()
->
CurrentLocale
=
ret
=
GetUserDefaultLCID
();
return
ret
;
}
}
...
...
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