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
fb54c4e0
Commit
fb54c4e0
authored
Aug 09, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Use 'MultiByteToWideChar' in __Fiopen implementation.
Based on a patch by Yeshun Ye.
parent
dc1fa72d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ios.c
dlls/msvcp60/ios.c
+2
-1
No files found.
dlls/msvcp60/ios.c
View file @
fb54c4e0
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include "msvcp.h"
#include "msvcp.h"
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "windows.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcp
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcp
);
...
@@ -2128,7 +2129,7 @@ FILE* __cdecl ___Fiopen(const char *name, int mode)
...
@@ -2128,7 +2129,7 @@ FILE* __cdecl ___Fiopen(const char *name, int mode)
TRACE
(
"(%p %d)
\n
"
,
name
,
mode
);
TRACE
(
"(%p %d)
\n
"
,
name
,
mode
);
if
(
mbstowcs_s
(
NULL
,
nameW
,
FILENAME_MAX
,
name
,
FILENAME_MAX
-
1
)
!=
0
)
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
nameW
,
FILENAME_MAX
-
1
)
)
return
NULL
;
return
NULL
;
return
_Fiopen_wchar
(
nameW
,
mode
,
_SH_DENYNO
);
return
_Fiopen_wchar
(
nameW
,
mode
,
_SH_DENYNO
);
}
}
...
...
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