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
dd34f924
Commit
dd34f924
authored
Jan 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Convert the open functions to use MS ABI varargs.
parent
f8de2ebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
file.c
dlls/msvcrt/file.c
+13
-13
No files found.
dlls/msvcrt/file.c
View file @
dd34f924
...
...
@@ -1418,7 +1418,7 @@ int CDECL MSVCRT__pipe(int *pfds, unsigned int psize, int textmode)
*/
int
CDECL
MSVCRT__sopen
(
const
char
*
path
,
int
oflags
,
int
shflags
,
...
)
{
va_list
ap
;
__ms_
va_list
ap
;
int
pmode
;
DWORD
access
=
0
,
creation
=
0
,
attrib
;
DWORD
sharing
;
...
...
@@ -1440,9 +1440,9 @@ int CDECL MSVCRT__sopen( const char *path, int oflags, int shflags, ... )
if
(
oflags
&
MSVCRT__O_CREAT
)
{
va_start
(
ap
,
shflags
);
pmode
=
va_arg
(
ap
,
int
);
va_end
(
ap
);
__ms_
va_start
(
ap
,
shflags
);
pmode
=
va_arg
(
ap
,
int
);
__ms_
va_end
(
ap
);
if
(
pmode
&
~
(
MSVCRT__S_IREAD
|
MSVCRT__S_IWRITE
))
FIXME
(
": pmode 0x%04x ignored
\n
"
,
pmode
);
...
...
@@ -1516,12 +1516,12 @@ int CDECL MSVCRT__wsopen( const MSVCRT_wchar_t* path, int oflags, int shflags, .
{
const
unsigned
int
len
=
strlenW
(
path
);
char
*
patha
=
MSVCRT_calloc
(
len
+
1
,
1
);
va_list
ap
;
__ms_
va_list
ap
;
int
pmode
;
va_start
(
ap
,
shflags
);
__ms_
va_start
(
ap
,
shflags
);
pmode
=
va_arg
(
ap
,
int
);
va_end
(
ap
);
__ms_
va_end
(
ap
);
if
(
patha
&&
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
len
,
patha
,
len
,
NULL
,
NULL
))
{
...
...
@@ -1539,14 +1539,14 @@ int CDECL MSVCRT__wsopen( const MSVCRT_wchar_t* path, int oflags, int shflags, .
*/
int
CDECL
MSVCRT__open
(
const
char
*
path
,
int
flags
,
...
)
{
va_list
ap
;
__ms_
va_list
ap
;
if
(
flags
&
MSVCRT__O_CREAT
)
{
int
pmode
;
va_start
(
ap
,
flags
);
__ms_
va_start
(
ap
,
flags
);
pmode
=
va_arg
(
ap
,
int
);
va_end
(
ap
);
__ms_
va_end
(
ap
);
return
MSVCRT__sopen
(
path
,
flags
,
MSVCRT__SH_DENYNO
,
pmode
);
}
else
...
...
@@ -1560,12 +1560,12 @@ int CDECL _wopen(const MSVCRT_wchar_t *path,int flags,...)
{
const
unsigned
int
len
=
strlenW
(
path
);
char
*
patha
=
MSVCRT_calloc
(
len
+
1
,
1
);
va_list
ap
;
__ms_
va_list
ap
;
int
pmode
;
va_start
(
ap
,
flags
);
__ms_
va_start
(
ap
,
flags
);
pmode
=
va_arg
(
ap
,
int
);
va_end
(
ap
);
__ms_
va_end
(
ap
);
if
(
patha
&&
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
len
,
patha
,
len
,
NULL
,
NULL
))
{
...
...
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