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
9ff8da54
Commit
9ff8da54
authored
Dec 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Don't store the current codepage in the thread data.
parent
0190edee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
kernel_private.h
dlls/kernel32/kernel_private.h
+1
-2
locale.c
dlls/kernel32/locale.c
+2
-2
No files found.
dlls/kernel32/kernel_private.h
View file @
9ff8da54
...
...
@@ -27,12 +27,11 @@ struct tagSYSLEVEL;
struct
kernel_thread_data
{
UINT
code_page
;
/* thread code page */
WORD
stack_sel
;
/* 16-bit stack selector */
WORD
htask16
;
/* Win16 task handle */
DWORD
sys_count
[
4
];
/* syslevel mutex entry counters */
struct
tagSYSLEVEL
*
sys_mutex
[
4
];
/* syslevel mutex pointers */
void
*
pad
[
4
4
];
/* change this if you add fields! */
void
*
pad
[
4
5
];
/* change this if you add fields! */
};
static
inline
struct
kernel_thread_data
*
kernel_get_thread_data
(
void
)
...
...
dlls/kernel32/locale.c
View file @
9ff8da54
...
...
@@ -222,7 +222,8 @@ static const union cptable *get_codepage_table( unsigned int codepage )
case
CP_UTF8
:
break
;
case
CP_THREAD_ACP
:
if
(
!
(
codepage
=
kernel_get_thread_data
()
->
code_page
))
return
ansi_cptable
;
if
(
NtCurrentTeb
()
->
CurrentLocale
==
GetUserDefaultLCID
())
return
ansi_cptable
;
codepage
=
get_lcid_codepage
(
NtCurrentTeb
()
->
CurrentLocale
);
/* fall through */
default:
if
(
codepage
==
ansi_cptable
->
info
.
codepage
)
return
ansi_cptable
;
...
...
@@ -2057,7 +2058,6 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
}
NtCurrentTeb
()
->
CurrentLocale
=
lcid
;
kernel_get_thread_data
()
->
code_page
=
get_lcid_codepage
(
lcid
);
}
return
TRUE
;
}
...
...
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