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
4c73236d
Commit
4c73236d
authored
Jul 05, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Fix off by one issues in basic_string functions operating on iterators.
parent
0d3dcd23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
string.c
dlls/msvcp90/string.c
+6
-6
No files found.
dlls/msvcp90/string.c
View file @
4c73236d
...
...
@@ -841,7 +841,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_iter, 20)
basic_string_char
*
__thiscall
MSVCP_basic_string_char_assign_iter
(
basic_string_char
*
this
,
String_iterator_char
beg
,
String_iterator_char
end
)
{
return
MSVCP_basic_string_char_assign_ptr_ptr
(
this
,
beg
.
pos
,
end
.
pos
+
1
);
return
MSVCP_basic_string_char_assign_ptr_ptr
(
this
,
beg
.
pos
,
end
.
pos
);
}
/* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXIID@Z */
...
...
@@ -1060,7 +1060,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_iter, 20)
basic_string_char
*
__thiscall
MSVCP_basic_string_char_ctor_iter
(
basic_string_char
*
this
,
String_iterator_char
beg
,
String_iterator_char
end
)
{
return
MSVCP_basic_string_char_ctor_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
+
1
);
return
MSVCP_basic_string_char_ctor_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
);
}
/* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
...
...
@@ -1224,7 +1224,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_iter, 20)
basic_string_char
*
__thiscall
MSVCP_basic_string_char_append_iter
(
basic_string_char
*
this
,
String_iterator_char
beg
,
String_iterator_char
end
)
{
return
MSVCP_basic_string_char_append_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
+
1
);
return
MSVCP_basic_string_char_append_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
);
}
/* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
...
...
@@ -2680,7 +2680,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter, 20)
basic_string_wchar
*
__thiscall
MSVCP_basic_string_wchar_assign_iter
(
basic_string_wchar
*
this
,
String_iterator_wchar
beg
,
String_iterator_wchar
end
)
{
return
MSVCP_basic_string_wchar_assign_ptr_ptr
(
this
,
beg
.
pos
,
end
.
pos
+
1
);
return
MSVCP_basic_string_wchar_assign_ptr_ptr
(
this
,
beg
.
pos
,
end
.
pos
);
}
/* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
...
...
@@ -2939,7 +2939,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter, 20)
basic_string_wchar
*
__thiscall
MSVCP_basic_string_wchar_ctor_iter
(
basic_string_wchar
*
this
,
String_iterator_wchar
beg
,
String_iterator_wchar
end
)
{
return
MSVCP_basic_string_wchar_ctor_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
+
1
);
return
MSVCP_basic_string_wchar_ctor_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
);
}
/* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
...
...
@@ -3133,7 +3133,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter, 20)
basic_string_wchar
*
__thiscall
MSVCP_basic_string_wchar_append_iter
(
basic_string_wchar
*
this
,
String_iterator_wchar
beg
,
String_iterator_wchar
end
)
{
return
MSVCP_basic_string_wchar_append_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
+
1
);
return
MSVCP_basic_string_wchar_append_cstr_len
(
this
,
beg
.
pos
,
end
.
pos
-
beg
.
pos
);
}
/* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
...
...
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