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
04ee55e9
Commit
04ee55e9
authored
Jan 14, 2003
by
Alberto Massari
Committed by
Alexandre Julliard
Jan 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Align the cleanup phase of ReleaseStgMedium to the native API.
- When the data is a bitmap or an enhanced metafile, use the correct data member.
parent
574d4a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
ole2.c
dlls/ole32/ole2.c
+6
-19
No files found.
dlls/ole32/ole2.c
View file @
04ee55e9
...
...
@@ -1516,8 +1516,6 @@ void WINAPI ReleaseStgMedium(
if
(
(
pmedium
->
pUnkForRelease
==
0
)
&&
(
pmedium
->
u
.
hGlobal
!=
0
)
)
GlobalFree
(
pmedium
->
u
.
hGlobal
);
pmedium
->
u
.
hGlobal
=
0
;
break
;
}
case
TYMED_FILE
:
...
...
@@ -1531,8 +1529,6 @@ void WINAPI ReleaseStgMedium(
CoTaskMemFree
(
pmedium
->
u
.
lpszFileName
);
}
pmedium
->
u
.
lpszFileName
=
0
;
break
;
}
case
TYMED_ISTREAM
:
...
...
@@ -1541,8 +1537,6 @@ void WINAPI ReleaseStgMedium(
{
IStream_Release
(
pmedium
->
u
.
pstm
);
}
pmedium
->
u
.
pstm
=
0
;
break
;
}
case
TYMED_ISTORAGE
:
...
...
@@ -1551,17 +1545,13 @@ void WINAPI ReleaseStgMedium(
{
IStorage_Release
(
pmedium
->
u
.
pstg
);
}
pmedium
->
u
.
pstg
=
0
;
break
;
}
case
TYMED_GDI
:
{
if
(
(
pmedium
->
pUnkForRelease
==
0
)
&&
(
pmedium
->
u
.
hGlobal
!=
0
)
)
DeleteObject
(
pmedium
->
u
.
hGlobal
);
pmedium
->
u
.
hGlobal
=
0
;
(
pmedium
->
u
.
hBitmap
!=
0
)
)
DeleteObject
(
pmedium
->
u
.
hBitmap
);
break
;
}
case
TYMED_MFPICT
:
...
...
@@ -1569,13 +1559,11 @@ void WINAPI ReleaseStgMedium(
if
(
(
pmedium
->
pUnkForRelease
==
0
)
&&
(
pmedium
->
u
.
hMetaFilePict
!=
0
)
)
{
LPMETAFILEPICT
pMP
=
GlobalLock
(
pmedium
->
u
.
h
Global
);
LPMETAFILEPICT
pMP
=
GlobalLock
(
pmedium
->
u
.
h
MetaFilePict
);
DeleteMetaFile
(
pMP
->
hMF
);
GlobalUnlock
(
pmedium
->
u
.
h
Global
);
GlobalFree
(
pmedium
->
u
.
h
Global
);
GlobalUnlock
(
pmedium
->
u
.
h
MetaFilePict
);
GlobalFree
(
pmedium
->
u
.
h
MetaFilePict
);
}
pmedium
->
u
.
hMetaFilePict
=
0
;
break
;
}
case
TYMED_ENHMF
:
...
...
@@ -1585,14 +1573,13 @@ void WINAPI ReleaseStgMedium(
{
DeleteEnhMetaFile
(
pmedium
->
u
.
hEnhMetaFile
);
}
pmedium
->
u
.
hEnhMetaFile
=
0
;
break
;
}
case
TYMED_NULL
:
default:
break
;
}
pmedium
->
tymed
=
TYMED_NULL
;
/*
* After cleaning up, the unknown is released
...
...
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