Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
30a1ed53
Commit
30a1ed53
authored
12 years ago
by
Piotr Caban
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msvcp90: Specify open mode in basic_ifstream<char> functions.
parent
43d99a1b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msvcp90/ios.c
+12
-6
12 additions, 6 deletions
dlls/msvcp90/ios.c
with
12 additions
and
6 deletions
dlls/msvcp90/ios.c
+
12
−
6
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment