mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
the last parameter is a null pointer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24149 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
26763681bb
commit
e332dbe7fa
@ -156,11 +156,11 @@ QVariant QWindowsMimeMetafile::convertToMime(
|
||||
|
||||
if (pDataObj->GetData(&formatetc, &s) == S_OK) {
|
||||
if (s.tymed == TYMED_ENHMF) {
|
||||
dataSize = GetEnhMetaFileBits(s.hEnhMetaFile, 0, 0);
|
||||
dataSize = GetEnhMetaFileBits(s.hEnhMetaFile, 0, NULL);
|
||||
data.resize(dataSize);
|
||||
dataSize = GetEnhMetaFileBits(s.hEnhMetaFile, dataSize, (LPBYTE)data.data());
|
||||
} else if (s.tymed == TYMED_MFPICT) {
|
||||
dataSize = GetMetaFileBitsEx((HMETAFILE)s.hMetaFilePict, 0, 0);
|
||||
dataSize = GetMetaFileBitsEx((HMETAFILE)s.hMetaFilePict, 0, NULL);
|
||||
data.resize(dataSize);
|
||||
dataSize = GetMetaFileBitsEx((HMETAFILE)s.hMetaFilePict, dataSize, (LPBYTE)data.data());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user