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
0260b269
Commit
0260b269
authored
Jul 18, 2006
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Added data freeing in TypeLib Viewer.
parent
928966dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
typelib.c
programs/oleview/typelib.c
+31
-0
No files found.
programs/oleview/typelib.c
View file @
0260b269
...
...
@@ -560,6 +560,36 @@ void UpdateTypeLibStatusBar(int itemID)
SendMessage
(
typelib
.
hStatusBar
,
SB_SETTEXT
,
0
,
(
LPARAM
)
info
);
}
void
EmptyTLTree
(
void
)
{
HTREEITEM
cur
,
del
;
TVITEM
tvi
;
tvi
.
mask
=
TVIF_PARAM
;
cur
=
TreeView_GetChild
(
typelib
.
hTree
,
TVI_ROOT
);
while
(
TRUE
)
{
del
=
cur
;
cur
=
TreeView_GetChild
(
typelib
.
hTree
,
del
);
if
(
!
cur
)
cur
=
TreeView_GetNextSibling
(
typelib
.
hTree
,
del
);
if
(
!
cur
)
cur
=
TreeView_GetParent
(
typelib
.
hTree
,
del
);
tvi
.
hItem
=
del
;
SendMessage
(
typelib
.
hTree
,
TVM_GETITEM
,
0
,
(
LPARAM
)
&
tvi
);
if
(
tvi
.
lParam
)
{
HeapFree
(
GetProcessHeap
(),
0
,
((
TYPELIB_DATA
*
)
tvi
.
lParam
)
->
idl
);
HeapFree
(
GetProcessHeap
(),
0
,
(
TYPELIB_DATA
*
)
tvi
.
lParam
);
}
SendMessage
(
typelib
.
hTree
,
TVM_DELETEITEM
,
0
,
(
LPARAM
)
del
);
if
(
!
cur
)
break
;
}
}
LRESULT
CALLBACK
TypeLibProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
...
...
@@ -596,6 +626,7 @@ LRESULT CALLBACK TypeLibProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
TypeLibResizeChild
();
break
;
case
WM_DESTROY
:
EmptyTLTree
();
break
;
default:
return
DefWindowProc
(
hWnd
,
uMsg
,
wParam
,
lParam
);
...
...
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