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
3011f5ee
Commit
3011f5ee
authored
Dec 05, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs/tests: Remove unused string (Clang).
parent
bc94ee09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
23 deletions
+17
-23
name.c
dlls/sxs/tests/name.c
+17
-23
No files found.
dlls/sxs/tests/name.c
View file @
3011f5ee
...
...
@@ -29,28 +29,22 @@
static
const
WCHAR
wine1W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
wine2W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'\"'
,
'0'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
','
,
't'
,
'y'
,
'p'
,
'e'
,
'='
,
'\"'
,
'w'
,
'i'
,
'n'
,
'3'
,
'2'
,
'\"'
,
','
,
'p'
,
'r'
,
'o'
,
'c'
,
'e'
,
's'
,
's'
,
'o'
,
'r'
,
'A'
,
'r'
,
'c'
,
'h'
,
'i'
,
't'
,
'e'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
'='
,
'\"'
,
'x'
,
'8'
,
'6'
,
'\"'
,
','
,
'p'
,
'u'
,
'b'
,
'l'
,
'i'
,
'c'
,
'K'
,
'e'
,
'y'
,
'T'
,
'o'
,
'k'
,
'e'
,
'n'
,
'='
,
'\"'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'0'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'\"'
,
0
};
static
const
WCHAR
wine3W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'\"'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
0
};
static
const
WCHAR
wine
4
W
[]
=
static
const
WCHAR
wine
3
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
0
};
static
const
WCHAR
wine
5
W
[]
=
static
const
WCHAR
wine
4
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
' '
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'\"'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
0
};
static
const
WCHAR
wine
6
W
[]
=
static
const
WCHAR
wine
5
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
' '
,
'='
,
'\"'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
0
};
static
const
WCHAR
wine
7
W
[]
=
static
const
WCHAR
wine
6
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
' '
,
'\"'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
0
};
static
const
WCHAR
wine
8
W
[]
=
static
const
WCHAR
wine
7
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
' '
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'\"'
,
'1'
,
'.'
,
'2'
,
'.'
,
'3'
,
'.'
,
'4'
,
'\"'
,
0
};
static
const
WCHAR
wine
9
W
[]
=
static
const
WCHAR
wine
8
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
wine
10
W
[]
=
static
const
WCHAR
wine
9
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
't'
,
'y'
,
'p'
,
'e'
,
'='
,
'\"'
,
'\"'
,
0
};
static
const
WCHAR
wine1
1
W
[]
=
static
const
WCHAR
wine1
0
W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
','
,
't'
,
'y'
,
'p'
,
'e'
,
'='
,
'\"'
,
'w'
,
'i'
,
'n'
,
'3'
,
'2'
,
0
};
static
void
test_CreateAssemblyNameObject
(
void
)
...
...
@@ -172,52 +166,52 @@ static void test_CreateAssemblyNameObject( void )
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
NULL
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
3
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
2
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
S_OK
,
"expected S_OK got %08x
\n
"
,
hr
);
ok
(
name
!=
NULL
,
"expected non-NULL name
\n
"
);
IAssemblyName_Release
(
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
4
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
3
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
5
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
4
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME
),
"expected ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
6
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
5
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME
),
"expected ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
7
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
6
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
NULL
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
8
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
7
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
S_OK
,
"expected S_OK got %08x
\n
"
,
hr
);
ok
(
name
!=
NULL
,
"expected non-NULL name
\n
"
);
IAssemblyName_Release
(
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
9
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
8
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
name
=
NULL
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
10
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine
9
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
S_OK
,
"expected S_OK got %08x
\n
"
,
hr
);
ok
(
name
!=
NULL
,
"expected non-NULL name
\n
"
);
IAssemblyName_Release
(
name
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
CreateAssemblyNameObject
(
&
name
,
wine1
1
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
hr
=
CreateAssemblyNameObject
(
&
name
,
wine1
0
W
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG got %08x
\n
"
,
hr
);
ok
(
!
name
,
"expected NULL got %p
\n
"
,
name
);
}
...
...
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