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
bc62a7a9
Commit
bc62a7a9
authored
Oct 25, 2012
by
Daniel Lehman
Committed by
Alexandre Julliard
Oct 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Sync istream<>::seekg implementations.
parent
7fe93a5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
180 deletions
+141
-180
ios.c
dlls/msvcp100/ios.c
+47
-60
ios.c
dlls/msvcp60/ios.c
+47
-60
ios.c
dlls/msvcp71/ios.c
+47
-60
No files found.
dlls/msvcp100/ios.c
View file @
bc62a7a9
...
@@ -6006,24 +6006,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
...
@@ -6006,24 +6006,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
TRACE
(
"(%p %s %d)
\n
"
,
this
,
wine_dbgstr_longlong
(
off
),
dir
);
TRACE
(
"(%p %s %d)
\n
"
,
this
,
wine_dbgstr_longlong
(
off
),
dir
);
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -6036,24 +6032,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
...
@@ -6036,24 +6032,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -7159,24 +7152,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
...
@@ -7159,24 +7152,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
TRACE
(
"(%p %s %d)
\n
"
,
this
,
wine_dbgstr_longlong
(
off
),
dir
);
TRACE
(
"(%p %s %d)
\n
"
,
this
,
wine_dbgstr_longlong
(
off
),
dir
);
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -7191,24 +7181,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
...
@@ -7191,24 +7181,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
...
dlls/msvcp60/ios.c
View file @
bc62a7a9
...
@@ -7397,24 +7397,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
...
@@ -7397,24 +7397,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -7427,24 +7423,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
...
@@ -7427,24 +7423,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -8675,24 +8668,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
...
@@ -8675,24 +8668,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -8707,24 +8697,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
...
@@ -8707,24 +8697,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
...
dlls/msvcp71/ios.c
View file @
bc62a7a9
...
@@ -7729,24 +7729,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
...
@@ -7729,24 +7729,20 @@ basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_char_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -7759,24 +7755,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
...
@@ -7759,24 +7755,21 @@ basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_char_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_char_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_char_sentry_destroy
(
this
);
basic_istream_char_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_char_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_char_sentry_destroy
(
this
);
basic_ios_char_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -9012,24 +9005,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
...
@@ -9012,24 +9005,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *t
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
TRACE
(
"(%p %ld %d)
\n
"
,
this
,
off
,
dir
);
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekoff
(
strbuf
,
&
ret
,
off
,
dir
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
@@ -9044,24 +9034,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
...
@@ -9044,24 +9034,21 @@ basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wch
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
TRACE
(
"(%p %s)
\n
"
,
this
,
debugstr_fpos_int
(
&
pos
));
if
(
basic_istream_wchar_sentry_create
(
this
,
TRUE
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
if
(
!
ios_base_fail
(
&
base
->
base
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
fpos_int
ret
;
fpos_int
ret
;
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_streambuf_wchar_pubseekpos
(
strbuf
,
&
ret
,
pos
,
OPENMODE_in
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_istream_wchar_sentry_destroy
(
this
);
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
if
(
ret
.
off
==
0
&&
ret
.
pos
==-
1
&&
ret
.
state
==
0
)
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
else
else
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
return
this
;
return
this
;
}
}
else
}
basic_ios_wchar_clear
(
base
,
IOSTATE_goodbit
);
basic_istream_wchar_sentry_destroy
(
this
);
basic_ios_wchar_setstate
(
base
,
IOSTATE_failbit
);
return
this
;
return
this
;
}
}
...
...
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