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
748788f3
Commit
748788f3
authored
Feb 09, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript/tests: Fixed buffer handling and leaks.
parent
7ac8ad44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
run.c
programs/wscript/tests/run.c
+6
-6
No files found.
programs/wscript/tests/run.c
View file @
748788f3
...
...
@@ -254,10 +254,10 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
ok
(
pdp
->
cArgs
==
0
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
!
pdp
->
cNamedArgs
,
"cNamedArgs = %d
\n
"
,
pdp
->
cNamedArgs
);
V_VT
(
pVarResult
)
=
VT_BSTR
;
res
=
GetFullPathNameA
(
script_name
,
sizeof
(
fullPath
)
/
sizeof
(
WCHAR
)
,
fullPath
,
&
pos
);
if
(
!
res
||
res
>
sizeof
(
fullPath
)
/
sizeof
(
WCHAR
)
)
res
=
GetFullPathNameA
(
script_name
,
sizeof
(
fullPath
),
fullPath
,
&
pos
);
if
(
!
res
||
res
>
sizeof
(
fullPath
))
return
E_FAIL
;
if
(
!
(
V_BSTR
(
pVarResult
)
=
SysAllocString
(
a2bstr
(
pos
)
)))
if
(
!
(
V_BSTR
(
pVarResult
)
=
a2bstr
(
pos
)))
return
E_OUTOFMEMORY
;
break
;
}
...
...
@@ -270,10 +270,10 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
ok
(
pdp
->
cArgs
==
0
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
!
pdp
->
cNamedArgs
,
"cNamedArgs = %d
\n
"
,
pdp
->
cNamedArgs
);
V_VT
(
pVarResult
)
=
VT_BSTR
;
res
=
GetFullPathNameA
(
script_name
,
sizeof
(
fullPath
)
/
sizeof
(
WCHAR
)
,
fullPath
,
NULL
);
if
(
!
res
||
res
>
sizeof
(
fullPath
)
/
sizeof
(
WCHAR
)
)
res
=
GetFullPathNameA
(
script_name
,
sizeof
(
fullPath
),
fullPath
,
NULL
);
if
(
!
res
||
res
>
sizeof
(
fullPath
))
return
E_FAIL
;
if
(
!
(
V_BSTR
(
pVarResult
)
=
SysAllocString
(
a2bstr
(
fullPath
)
)))
if
(
!
(
V_BSTR
(
pVarResult
)
=
a2bstr
(
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