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
4b7333e2
Commit
4b7333e2
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: Added basic_string tests.
parent
1c33835a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
6 deletions
+19
-6
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
string.c
dlls/msvcp60/string.c
+8
-6
Makefile.in
dlls/msvcp60/tests/Makefile.in
+9
-0
string.c
dlls/msvcp60/tests/string.c
+0
-0
No files found.
configure
View file @
4b7333e2
...
...
@@ -15538,6 +15538,7 @@ wine_fn_config_dll msvcm90 enable_msvcm90
wine_fn_config_dll msvcp100 enable_msvcp100
wine_fn_config_test dlls/msvcp100/tests msvcp100_test
wine_fn_config_dll msvcp60 enable_msvcp60
wine_fn_config_test dlls/msvcp60/tests msvcp60_test
wine_fn_config_dll msvcp70 enable_msvcp70
wine_fn_config_dll msvcp71 enable_msvcp71
wine_fn_config_dll msvcp80 enable_msvcp80
...
...
configure.ac
View file @
4b7333e2
...
...
@@ -2804,6 +2804,7 @@ WINE_CONFIG_DLL(msvcm90)
WINE_CONFIG_DLL(msvcp100)
WINE_CONFIG_TEST(dlls/msvcp100/tests)
WINE_CONFIG_DLL(msvcp60)
WINE_CONFIG_TEST(dlls/msvcp60/tests)
WINE_CONFIG_DLL(msvcp70)
WINE_CONFIG_DLL(msvcp71)
WINE_CONFIG_DLL(msvcp80)
...
...
dlls/msvcp60/string.c
View file @
4b7333e2
...
...
@@ -892,7 +892,7 @@ MSVCP_size_t __thiscall basic_string_char_rfind_cstr_substr(
if
(
pos
>
this
->
size
-
len
+
1
)
pos
=
this
->
size
-
len
+
1
;
end
=
this
->
ptr
;
for
(
p
=
end
+
pos
-
1
;
p
>=
end
;
p
--
)
{
for
(
p
=
end
+
pos
;
p
>=
end
;
p
--
)
{
if
(
*
p
==*
find
&&
!
char_traits_char_compare
(
p
,
find
,
len
))
return
p
-
this
->
ptr
;
}
...
...
@@ -1390,7 +1390,8 @@ basic_string_char* __thiscall basic_string_char_replace_cstr_len(basic_string_ch
memmove
(
ptr
+
off
+
size
,
ptr
+
off
+
str_len
,
(
str_len
-
size
)
*
sizeof
(
char
));
}
basic_string_char__Eos
(
this
,
this
->
size
-
len
+
str_len
);
if
(
this
->
ptr
)
basic_string_char__Eos
(
this
,
this
->
size
-
len
+
str_len
);
return
this
;
}
...
...
@@ -1784,7 +1785,7 @@ static wchar_t* char_traits_wchar__Move_s(wchar_t *dest,
return
dest
;
}
return
memmove
(
dest
,
src
,
count
);
return
memmove
(
dest
,
src
,
count
*
sizeof
(
WCHAR
)
);
}
static
wchar_t
*
char_traits_wchar__Copy_s
(
wchar_t
*
dest
,
...
...
@@ -1797,7 +1798,7 @@ static wchar_t* char_traits_wchar__Copy_s(wchar_t *dest,
return
dest
;
}
return
memcpy
(
dest
,
src
,
count
);
return
memcpy
(
dest
,
src
,
count
*
sizeof
(
wchar_t
)
);
}
static
MSVCP_size_t
char_traits_wchar_length
(
const
wchar_t
*
str
)
...
...
@@ -2602,7 +2603,7 @@ MSVCP_size_t __thiscall basic_string_wchar_rfind_cstr_substr(
if
(
pos
>
this
->
size
-
len
+
1
)
pos
=
this
->
size
-
len
+
1
;
end
=
this
->
ptr
;
for
(
p
=
end
+
pos
-
1
;
p
>=
end
;
p
--
)
{
for
(
p
=
end
+
pos
;
p
>=
end
;
p
--
)
{
if
(
*
p
==*
find
&&
!
char_traits_wchar_compare
(
p
,
find
,
len
))
return
p
-
this
->
ptr
;
}
...
...
@@ -3100,7 +3101,8 @@ basic_string_wchar* __thiscall basic_string_wchar_replace_cstr_len(basic_string_
memmove
(
ptr
+
off
+
size
,
ptr
+
off
+
str_len
,
(
str_len
-
size
)
*
sizeof
(
char
));
}
basic_string_wchar__Eos
(
this
,
this
->
size
-
len
+
str_len
);
if
(
this
->
ptr
)
basic_string_wchar__Eos
(
this
,
this
->
size
-
len
+
str_len
);
return
this
;
}
...
...
dlls/msvcp60/tests/Makefile.in
0 → 100644
View file @
4b7333e2
TESTDLL
=
msvcp60.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
string.c
@MAKE_TEST_RULES@
dlls/msvcp60/tests/string.c
0 → 100644
View file @
4b7333e2
This diff is collapsed.
Click to expand it.
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