Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f90be6e1
Commit
f90be6e1
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 mystrchr.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3324137f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
run.c
programs/wscript/tests/run.c
+1
-12
No files found.
programs/wscript/tests/run.c
View file @
f90be6e1
...
...
@@ -74,17 +74,6 @@ static const GUID CLSID_TestObj =
static
const
char
*
script_name
;
static
HANDLE
wscript_process
;
static
const
WCHAR
*
mystrrchr
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
const
WCHAR
*
pos
=
NULL
,
*
current
=
str
;
while
(
*
current
!=
0
)
{
if
(
*
current
==
ch
)
pos
=
current
;
++
current
;
}
return
pos
;
}
static
BSTR
a2bstr
(
const
char
*
str
)
{
BSTR
ret
;
...
...
@@ -232,7 +221,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
res
=
GetModuleFileNameExW
(
wscript_process
,
NULL
,
fullPath
,
ARRAY_SIZE
(
fullPath
));
if
(
res
==
0
)
return
E_FAIL
;
pos
=
mystr
rchr
(
fullPath
,
'\\'
);
pos
=
wcs
rchr
(
fullPath
,
'\\'
);
if
(
!
(
V_BSTR
(
pVarResult
)
=
SysAllocStringLen
(
fullPath
,
pos
-
fullPath
)))
return
E_OUTOFMEMORY
;
break
;
...
...
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