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
3324137f
Commit
3324137f
authored
Feb 03, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript/tests: Get rid of strcmp_wa.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ddfae943
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
run.c
programs/wscript/tests/run.c
+7
-14
No files found.
programs/wscript/tests/run.c
View file @
3324137f
...
...
@@ -74,13 +74,6 @@ static const GUID CLSID_TestObj =
static
const
char
*
script_name
;
static
HANDLE
wscript_process
;
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
{
WCHAR
buf
[
512
];
MultiByteToWideChar
(
CP_ACP
,
0
,
stra
,
-
1
,
buf
,
ARRAY_SIZE
(
buf
));
return
lstrcmpW
(
strw
,
buf
);
}
static
const
WCHAR
*
mystrrchr
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
const
WCHAR
*
pos
=
NULL
,
*
current
=
str
;
...
...
@@ -143,19 +136,19 @@ static HRESULT WINAPI Dispatch_GetIDsOfNames(IDispatch *iface, REFIID riid,
unsigned
i
;
for
(
i
=
0
;
i
<
cNames
;
i
++
)
{
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"ok"
))
{
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"ok"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_OK
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"trace"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"trace"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_TRACE
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"reportSuccess"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"reportSuccess"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_REPORTSUCCESS
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"wscriptFullName"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"wscriptFullName"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_WSCRIPTFULLNAME
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"wscriptPath"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"wscriptPath"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_WSCRIPTPATH
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"wscriptScriptName"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"wscriptScriptName"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_WSCRIPTSCRIPTNAME
;
}
else
if
(
!
strcmp_wa
(
rgszNames
[
i
],
"wscriptScriptFullName"
))
{
}
else
if
(
!
lstrcmpW
(
rgszNames
[
i
],
L
"wscriptScriptFullName"
))
{
rgDispId
[
i
]
=
DISPID_TESTOBJ_WSCRIPTSCRIPTFULLNAME
;
}
else
{
ok
(
0
,
"unexpected name %s
\n
"
,
wine_dbgstr_w
(
rgszNames
[
i
]));
...
...
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