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
830de631
Commit
830de631
authored
Dec 07, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use MultiByteToWideChar() and WideCharToMultiByte() from kernelbase.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a2c107fc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
8 deletions
+6
-8
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-2
kernel_private.h
dlls/kernel32/kernel_private.h
+0
-3
locale.c
dlls/kernel32/locale.c
+0
-0
process.c
dlls/kernel32/process.c
+0
-2
locale.c
dlls/kernelbase/locale.c
+4
-1
No files found.
dlls/kernel32/kernel32.spec
View file @
830de631
...
...
@@ -1096,7 +1096,7 @@
@ stdcall MoveFileWithProgressA(str str ptr ptr long)
@ stdcall MoveFileWithProgressW(wstr wstr ptr ptr long)
@ stdcall MulDiv(long long long)
@ stdcall MultiByteToWideChar(long long str long ptr long)
@ stdcall
-import
MultiByteToWideChar(long long str long ptr long)
@ stdcall -import NeedCurrentDirectoryForExePathA(str)
@ stdcall -import NeedCurrentDirectoryForExePathW(wstr)
# @ stub NlsCheckPolicy
...
...
@@ -1601,7 +1601,7 @@
# @ stub WerpNotifyLoadStringResourceEx
# @ stub WerpNotifyUseStringResource
# @ stub WerpStringLookup
@ stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr)
@ stdcall
-import
WideCharToMultiByte(long long wstr long ptr long ptr ptr)
@ stdcall WinExec(str long)
@ stdcall Wow64EnableWow64FsRedirection(long) KERNEL32_Wow64EnableWow64FsRedirection
@ stdcall -import Wow64DisableWow64FsRedirection(ptr)
...
...
dlls/kernel32/kernel_private.h
View file @
830de631
...
...
@@ -72,9 +72,6 @@ extern void ENV_CopyStartupInformation(void) DECLSPEC_HIDDEN;
/* computername.c */
extern
void
COMPUTERNAME_Init
(
void
)
DECLSPEC_HIDDEN
;
/* locale.c */
extern
void
LOCALE_Init
(
void
)
DECLSPEC_HIDDEN
;
/* time.c */
extern
void
TIMEZONE_InitRegistry
(
void
)
DECLSPEC_HIDDEN
;
...
...
dlls/kernel32/locale.c
View file @
830de631
This diff is collapsed.
Click to expand it.
dlls/kernel32/process.c
View file @
830de631
...
...
@@ -173,8 +173,6 @@ void * CDECL __wine_kernel_init(void)
kernel32_handle
=
GetModuleHandleW
(
kernel32W
);
RtlSetUnhandledExceptionFilter
(
UnhandledExceptionFilter
);
LOCALE_Init
();
return
start_process_wrapper
;
}
...
...
dlls/kernelbase/locale.c
View file @
830de631
...
...
@@ -1118,7 +1118,10 @@ static inline int is_valid_dbcs_mapping( const CPTABLEINFO *info, DWORD flags,
WCHAR
wch
,
unsigned
short
ch
)
{
if
((
flags
&
WC_NO_BEST_FIT_CHARS
)
||
ch
==
info
->
DefaultChar
)
return
info
->
DBCSOffsets
[
info
->
DBCSOffsets
[
ch
>>
8
]
+
(
ch
&
0xff
)]
==
wch
;
{
if
(
ch
>>
8
)
return
info
->
DBCSOffsets
[
info
->
DBCSOffsets
[
ch
>>
8
]
+
(
ch
&
0xff
)]
==
wch
;
return
info
->
MultiByteTable
[
ch
]
==
wch
;
}
return
1
;
}
...
...
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