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
8c46e2a8
Commit
8c46e2a8
authored
Aug 09, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Use 'MultiByteToWideChar' in _Fiopen implementation.
Based on a patch by Yeshun Ye.
parent
fb54c4e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ios.c
dlls/msvcp90/ios.c
+5
-0
No files found.
dlls/msvcp90/ios.c
View file @
8c46e2a8
...
...
@@ -3262,8 +3262,13 @@ FILE* __cdecl _Fiopen(const char *name, int mode, int prot)
TRACE
(
"(%s %d %d)
\n
"
,
name
,
mode
,
prot
);
#if _MSVCP_VER >= 71 && _MSVCP_VER <= 90
if
(
mbstowcs_s
(
NULL
,
nameW
,
FILENAME_MAX
,
name
,
FILENAME_MAX
-
1
)
!=
0
)
return
NULL
;
#else
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
nameW
,
FILENAME_MAX
-
1
))
return
NULL
;
#endif
return
_Fiopen_wchar
(
nameW
,
mode
,
prot
);
}
...
...
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