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
cd1f67ee
Commit
cd1f67ee
authored
Jul 19, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use proper allocators for storing description in ErrorInfoImpl.
parent
4843f031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
errorinfo.c
dlls/ole32/errorinfo.c
+6
-7
No files found.
dlls/ole32/errorinfo.c
View file @
cd1f67ee
...
...
@@ -156,7 +156,7 @@ typedef struct ErrorInfoImpl
GUID
m_Guid
;
WCHAR
*
source
;
BSTR
bstrD
escription
;
WCHAR
*
d
escription
;
BSTR
bstrHelpFile
;
DWORD
m_dwHelpContext
;
}
ErrorInfoImpl
;
...
...
@@ -230,7 +230,7 @@ static ULONG WINAPI IErrorInfoImpl_Release(
TRACE
(
"-- destroying IErrorInfo(%p)
\n
"
,
This
);
heap_free
(
This
->
source
);
ERRORINFO_SysFreeString
(
This
->
bstrD
escription
);
heap_free
(
This
->
d
escription
);
ERRORINFO_SysFreeString
(
This
->
bstrHelpFile
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
@@ -270,7 +270,7 @@ static HRESULT WINAPI IErrorInfoImpl_GetDescription(
TRACE
(
"(%p)->(pBstrDescription=%p)
\n
"
,
This
,
pBstrDescription
);
if
(
pBstrDescription
==
NULL
)
return
E_INVALIDARG
;
*
pBstrDescription
=
ERRORINFO_SysAllocString
(
This
->
bstrD
escription
);
*
pBstrDescription
=
SysAllocString
(
This
->
d
escription
);
return
S_OK
;
}
...
...
@@ -368,10 +368,9 @@ static HRESULT WINAPI ICreateErrorInfoImpl_SetDescription(
{
ErrorInfoImpl
*
This
=
impl_from_ICreateErrorInfo
(
iface
);
TRACE
(
"(%p): %s
\n
"
,
This
,
debugstr_w
(
szDescription
));
if
(
This
->
bstrDescription
!=
NULL
)
ERRORINFO_SysFreeString
(
This
->
bstrDescription
);
This
->
bstrDescription
=
ERRORINFO_SysAllocString
(
szDescription
);
heap_free
(
This
->
description
);
This
->
description
=
heap_strdupW
(
szDescription
);
return
S_OK
;
}
...
...
@@ -458,7 +457,7 @@ static IErrorInfo* IErrorInfoImpl_Constructor(void)
This
->
ISupportErrorInfo_iface
.
lpVtbl
=
&
SupportErrorInfoVtbl
;
This
->
ref
=
1
;
This
->
source
=
NULL
;
This
->
bstrD
escription
=
NULL
;
This
->
d
escription
=
NULL
;
This
->
bstrHelpFile
=
NULL
;
This
->
m_dwHelpContext
=
0
;
...
...
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