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
144995b5
Commit
144995b5
authored
Nov 23, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't use the NONAMELESS* macros in the tests.
parent
73c6275e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
string.c
dlls/shell32/tests/string.c
+4
-6
No files found.
dlls/shell32/tests/string.c
View file @
144995b5
...
...
@@ -21,8 +21,6 @@
#include <stdarg.h>
#include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define WINE_NOWINSOCK
#include "windef.h"
#include "winbase.h"
...
...
@@ -67,21 +65,21 @@ static void test_StrRetToStringNW(void)
trace
(
"StrRetToStringNAW is Unicode
\n
"
);
strret
.
uType
=
STRRET_WSTR
;
strret
.
u
.
pOleStr
=
CoDupStrW
(
"Test"
);
U
(
strret
)
.
pOleStr
=
CoDupStrW
(
"Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
),
&
strret
,
NULL
);
ok
(
ret
==
TRUE
&&
!
strcmpW
(
buff
,
szTestW
),
"STRRET_WSTR: dup failed, ret=%d
\n
"
,
ret
);
strret
.
uType
=
STRRET_CSTR
;
lstrcpyA
(
strret
.
u
.
cStr
,
"Test"
);
lstrcpyA
(
U
(
strret
)
.
cStr
,
"Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
),
&
strret
,
NULL
);
ok
(
ret
==
TRUE
&&
!
strcmpW
(
buff
,
szTestW
),
"STRRET_CSTR: dup failed, ret=%d
\n
"
,
ret
);
strret
.
uType
=
STRRET_OFFSET
;
strret
.
u
.
uOffset
=
1
;
U
(
strret
)
.
uOffset
=
1
;
strcpy
((
char
*
)
&
iidl
,
" Test"
);
memset
(
buff
,
0xff
,
sizeof
(
buff
));
ret
=
pStrRetToStrNAW
(
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
),
&
strret
,
iidl
);
...
...
@@ -92,7 +90,7 @@ static void test_StrRetToStringNW(void)
#if 0
/* Invalid dest - should return FALSE, except NT4 does not, so we don't check. */
strret.uType = STRRET_WSTR;
strret.u
.pOleStr = CoDupStrW("Test");
U(strret)
.pOleStr = CoDupStrW("Test");
pStrRetToStrNAW(NULL, sizeof(buff)/sizeof(WCHAR), &strret, NULL);
trace("NULL dest: ret=%d\n", ret);
#endif
...
...
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