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
30a1ed53
Commit
30a1ed53
authored
Jun 13, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Specify open mode in basic_ifstream<char> functions.
parent
43d99a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
ios.c
dlls/msvcp90/ios.c
+12
-6
No files found.
dlls/msvcp90/ios.c
View file @
30a1ed53
...
...
@@ -5037,7 +5037,7 @@ basic_ifstream_char* __thiscall basic_ifstream_char_ctor_name(basic_ifstream_cha
basic_ifstream_char_ctor
(
this
,
virt_init
);
if
(
!
basic_filebuf_char_open
(
&
this
->
filebuf
,
name
,
mode
,
prot
))
{
if
(
!
basic_filebuf_char_open
(
&
this
->
filebuf
,
name
,
mode
|
OPENMODE_in
,
prot
))
{
basic_ios_char
*
basic_ios
=
basic_istream_char_get_basic_ios
(
&
this
->
base
);
basic_ios_char_setstate
(
basic_ios
,
IOSTATE_failbit
);
}
...
...
@@ -5046,6 +5046,8 @@ basic_ifstream_char* __thiscall basic_ifstream_char_ctor_name(basic_ifstream_cha
/* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
/* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
/* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
/* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ifstream_char_ctor_name_wchar
,
20
)
basic_ifstream_char
*
__thiscall
basic_ifstream_char_ctor_name_wchar
(
basic_ifstream_char
*
this
,
const
wchar_t
*
name
,
int
mode
,
int
prot
,
MSVCP_bool
virt_init
)
...
...
@@ -5054,7 +5056,7 @@ basic_ifstream_char* __thiscall basic_ifstream_char_ctor_name_wchar(basic_ifstre
basic_ifstream_char_ctor
(
this
,
virt_init
);
if
(
!
basic_filebuf_char_open_wchar
(
&
this
->
filebuf
,
name
,
mode
,
prot
))
{
if
(
!
basic_filebuf_char_open_wchar
(
&
this
->
filebuf
,
name
,
mode
|
OPENMODE_in
,
prot
))
{
basic_ios_char
*
basic_ios
=
basic_istream_char_get_basic_ios
(
&
this
->
base
);
basic_ios_char_setstate
(
basic_ios
,
IOSTATE_failbit
);
}
...
...
@@ -5136,7 +5138,7 @@ void __thiscall basic_ifstream_char_open(basic_ifstream_char *this,
{
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
name
,
mode
,
prot
);
if
(
!
basic_filebuf_char_open
(
&
this
->
filebuf
,
name
,
mode
,
prot
))
{
if
(
!
basic_filebuf_char_open
(
&
this
->
filebuf
,
name
,
mode
|
OPENMODE_in
,
prot
))
{
basic_ios_char
*
basic_ios
=
basic_istream_char_get_basic_ios
(
&
this
->
base
);
basic_ios_char_setstate
(
basic_ios
,
IOSTATE_failbit
);
}
...
...
@@ -5146,20 +5148,22 @@ void __thiscall basic_ifstream_char_open(basic_ifstream_char *this,
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ifstream_char_open_old
,
12
)
void
__thiscall
basic_ifstream_char_open_old
(
basic_ifstream_char
*
this
,
const
char
*
name
,
unsigned
int
mod
)
const
char
*
name
,
unsigned
int
mod
e
)
{
basic_ifstream_char_open
(
this
,
name
,
mod
,
_SH_DENYNO
);
basic_ifstream_char_open
(
this
,
name
,
mod
e
,
_SH_DENYNO
);
}
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ifstream_char_open_wchar
,
16
)
void
__thiscall
basic_ifstream_char_open_wchar
(
basic_ifstream_char
*
this
,
const
wchar_t
*
name
,
int
mode
,
int
prot
)
{
TRACE
(
"(%p %s %d %d)
\n
"
,
this
,
debugstr_w
(
name
),
mode
,
prot
);
if
(
!
basic_filebuf_char_open_wchar
(
&
this
->
filebuf
,
name
,
mode
,
prot
))
{
if
(
!
basic_filebuf_char_open_wchar
(
&
this
->
filebuf
,
name
,
mode
|
OPENMODE_in
,
prot
))
{
basic_ios_char
*
basic_ios
=
basic_istream_char_get_basic_ios
(
&
this
->
base
);
basic_ios_char_setstate
(
basic_ios
,
IOSTATE_failbit
);
}
...
...
@@ -5167,6 +5171,8 @@ void __thiscall basic_ifstream_char_open_wchar(basic_ifstream_char *this,
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
/* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
DEFINE_THISCALL_WRAPPER
(
basic_ifstream_char_open_wchar_old
,
12
)
void
__thiscall
basic_ifstream_char_open_wchar_old
(
basic_ifstream_char
*
this
,
const
wchar_t
*
name
,
unsigned
int
mode
)
...
...
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