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
1752f364
Commit
1752f364
authored
May 03, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: automation: Free memory after string conversion.
parent
804d0139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
automation.c
dlls/msi/tests/automation.c
+9
-6
No files found.
dlls/msi/tests/automation.c
View file @
1752f364
...
...
@@ -334,16 +334,19 @@ static DISPID get_dispid( IDispatch *disp, const char *name )
{
LPOLESTR
str
;
UINT
len
;
DISPID
id
;
DISPID
id
=
-
1
;
HRESULT
r
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
NULL
,
0
);
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
str
,
len
);
r
=
IDispatch_GetIDsOfNames
(
disp
,
&
IID_NULL
,
&
str
,
1
,
0
,
&
id
);
if
(
r
!=
S_OK
)
return
-
1
;
if
(
str
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
str
,
len
);
r
=
IDispatch_GetIDsOfNames
(
disp
,
&
IID_NULL
,
&
str
,
1
,
0
,
&
id
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
if
(
r
!=
S_OK
)
return
-
1
;
}
return
id
;
}
...
...
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