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
43e8e008
Commit
43e8e008
authored
Nov 14, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Fixed basic_istream::getline(basic_string) implementation.
parent
a43840bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ios.c
dlls/msvcp60/ios.c
+2
-2
string.c
dlls/msvcp60/string.c
+2
-0
No files found.
dlls/msvcp60/ios.c
View file @
43e8e008
...
@@ -7617,9 +7617,9 @@ basic_istream_char* __cdecl basic_istream_char_getline_bstr_delim(
...
@@ -7617,9 +7617,9 @@ basic_istream_char* __cdecl basic_istream_char_getline_bstr_delim(
TRACE
(
"(%p %p %c)
\n
"
,
istream
,
str
,
delim
);
TRACE
(
"(%p %p %c)
\n
"
,
istream
,
str
,
delim
);
basic_string_char_clear
(
str
);
if
(
basic_istream_char_sentry_create
(
istream
,
TRUE
))
{
if
(
basic_istream_char_sentry_create
(
istream
,
TRUE
))
{
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_streambuf_char
*
strbuf
=
basic_ios_char_rdbuf_get
(
base
);
basic_string_char_clear
(
str
);
c
=
basic_streambuf_char_sgetc
(
strbuf
);
c
=
basic_streambuf_char_sgetc
(
strbuf
);
for
(;
c
!=
(
unsigned
char
)
delim
&&
c
!=
EOF
;
c
=
basic_streambuf_char_snextc
(
strbuf
))
for
(;
c
!=
(
unsigned
char
)
delim
&&
c
!=
EOF
;
c
=
basic_streambuf_char_snextc
(
strbuf
))
...
@@ -8909,9 +8909,9 @@ basic_istream_wchar* __cdecl basic_istream_wchar_getline_bstr_delim(
...
@@ -8909,9 +8909,9 @@ basic_istream_wchar* __cdecl basic_istream_wchar_getline_bstr_delim(
TRACE
(
"(%p %p %c)
\n
"
,
istream
,
str
,
delim
);
TRACE
(
"(%p %p %c)
\n
"
,
istream
,
str
,
delim
);
basic_string_wchar_clear
(
str
);
if
(
basic_istream_wchar_sentry_create
(
istream
,
TRUE
))
{
if
(
basic_istream_wchar_sentry_create
(
istream
,
TRUE
))
{
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_streambuf_wchar
*
strbuf
=
basic_ios_wchar_rdbuf_get
(
base
);
basic_string_wchar_clear
(
str
);
c
=
basic_streambuf_wchar_sgetc
(
strbuf
);
c
=
basic_streambuf_wchar_sgetc
(
strbuf
);
for
(;
c
!=
delim
&&
c
!=
WEOF
;
c
=
basic_streambuf_wchar_snextc
(
strbuf
))
for
(;
c
!=
delim
&&
c
!=
WEOF
;
c
=
basic_streambuf_wchar_snextc
(
strbuf
))
...
...
dlls/msvcp60/string.c
View file @
43e8e008
...
@@ -153,6 +153,7 @@ void __thiscall basic_string_char__Eos(basic_string_char *this, MSVCP_size_t len
...
@@ -153,6 +153,7 @@ void __thiscall basic_string_char__Eos(basic_string_char *this, MSVCP_size_t len
void
basic_string_char_clear
(
basic_string_char
*
this
)
void
basic_string_char_clear
(
basic_string_char
*
this
)
{
{
if
(
this
->
ptr
)
basic_string_char__Eos
(
this
,
0
);
basic_string_char__Eos
(
this
,
0
);
}
}
...
@@ -1865,6 +1866,7 @@ void __thiscall basic_string_wchar__Eos(basic_string_wchar *this, MSVCP_size_t l
...
@@ -1865,6 +1866,7 @@ void __thiscall basic_string_wchar__Eos(basic_string_wchar *this, MSVCP_size_t l
void
basic_string_wchar_clear
(
basic_string_wchar
*
this
)
void
basic_string_wchar_clear
(
basic_string_wchar
*
this
)
{
{
if
(
this
->
ptr
)
basic_string_wchar__Eos
(
this
,
0
);
basic_string_wchar__Eos
(
this
,
0
);
}
}
...
...
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