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
03d19b57
Commit
03d19b57
authored
Jul 27, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use SysAllocString/SysFreeString for BSTR members of EXCEPINFO structure.
parent
ed4f1e8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
automation.c
dlls/msi/automation.c
+2
-2
script.c
dlls/msi/script.c
+6
-0
automation.c
dlls/msi/tests/automation.c
+4
-0
No files found.
dlls/msi/automation.c
View file @
03d19b57
...
...
@@ -426,8 +426,8 @@ static HRESULT WINAPI AutomationObject_Invoke(
memset
(
pExcepInfo
,
0
,
sizeof
(
EXCEPINFO
));
pExcepInfo
->
wCode
=
1000
;
pExcepInfo
->
bstrSource
=
szExceptionSource
;
pExcepInfo
->
bstrDescription
=
szExceptionDescription
;
pExcepInfo
->
bstrSource
=
SysAllocString
(
szExceptionSource
)
;
pExcepInfo
->
bstrDescription
=
SysAllocString
(
szExceptionDescription
)
;
hr
=
DISP_E_EXCEPTION
;
}
}
...
...
dlls/msi/script.c
View file @
03d19b57
...
...
@@ -336,9 +336,15 @@ static HRESULT WINAPI MsiActiveScriptSite_OnScriptError(IActiveScriptSite* iface
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
pscripterror
);
memset
(
&
exception
,
0
,
sizeof
(
EXCEPINFO
));
hr
=
IActiveScriptError_GetExceptionInfo
(
pscripterror
,
&
exception
);
if
(
SUCCEEDED
(
hr
))
{
ERR
(
"script error: %s
\n
"
,
debugstr_w
(
exception
.
bstrDescription
));
SysFreeString
(
exception
.
bstrSource
);
SysFreeString
(
exception
.
bstrDescription
);
SysFreeString
(
exception
.
bstrHelpFile
);
}
return
S_OK
;
}
...
...
dlls/msi/tests/automation.c
View file @
03d19b57
...
...
@@ -433,6 +433,10 @@ static WCHAR szSource[] = {'M','s','i',' ','A','P','I',' ','E','r','r','o','r',0
ok(excepinfo.bstrDescription != NULL, "Exception description was NULL\n"); \
if (excepinfo.bstrDescription) \
ok_w2("Exception description was \"%s\" but expected to be \"%s\"\n", excepinfo.bstrDescription, szDescription); \
\
SysFreeString(excepinfo.bstrSource); \
SysFreeString(excepinfo.bstrDescription); \
SysFreeString(excepinfo.bstrHelpFile); \
}
static
DISPID
get_dispid
(
IDispatch
*
disp
,
const
char
*
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