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
bd35b0a1
Commit
bd35b0a1
authored
Oct 22, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Make the string.c tests compile in Visual C++.
parent
66890b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
string.c
dlls/shlwapi/tests/string.c
+4
-4
No files found.
dlls/shlwapi/tests/string.c
View file @
bd35b0a1
...
...
@@ -43,7 +43,7 @@ static BOOL (WINAPI *pIntlStrEqWorkerA)(BOOL,LPCSTR,LPCSTR,int);
static
BOOL
(
WINAPI
*
pStrIsIntlEqualW
)(
BOOL
,
LPCWSTR
,
LPCWSTR
,
int
);
static
BOOL
(
WINAPI
*
pIntlStrEqWorkerW
)(
BOOL
,
LPCWSTR
,
LPCWSTR
,
int
);
static
in
line
in
t
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
static
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
...
...
@@ -619,7 +619,7 @@ static void test_StrRetToBSTR(void)
if
(
!
pStrRetToBSTR
)
return
;
strret
.
uType
=
STRRET_WSTR
;
strret
.
u
.
pOleStr
=
CoDupStrW
(
"Test"
);
U
(
strret
)
.
pOleStr
=
CoDupStrW
(
"Test"
);
bstr
=
0
;
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
...
...
@@ -628,7 +628,7 @@ static void test_StrRetToBSTR(void)
SysFreeString
(
bstr
);
strret
.
uType
=
STRRET_CSTR
;
lstrcpyA
(
strret
.
u
.
cStr
,
"Test"
);
lstrcpyA
(
U
(
strret
)
.
cStr
,
"Test"
);
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
"STRRET_CSTR: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
...
...
@@ -636,7 +636,7 @@ static void test_StrRetToBSTR(void)
SysFreeString
(
bstr
);
strret
.
uType
=
STRRET_OFFSET
;
strret
.
u
.
uOffset
=
1
;
U
(
strret
)
.
uOffset
=
1
;
strcpy
((
char
*
)
&
iidl
,
" Test"
);
ret
=
pStrRetToBSTR
(
&
strret
,
iidl
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
...
...
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