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:
Joost Verburg 2008-04-07 14:13:45 +00:00
parent 26763681bb
commit e332dbe7fa

View File

@ -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());
}