Fix up casts in MSWindowsClipboardBitmapConverter
This commit is contained in:
parent
2e30dc2c68
commit
f7ad162634
|
@ -71,7 +71,7 @@ String
|
|||
MSWindowsClipboardBitmapConverter::toIClipboard(HANDLE data) const
|
||||
{
|
||||
// get datator
|
||||
const char* src = (const char*)GlobalLock(data);
|
||||
LPVOID src = GlobalLock(data);
|
||||
if (src == NULL) {
|
||||
return String();
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ MSWindowsClipboardBitmapConverter::toIClipboard(HANDLE data) const
|
|||
bitmap->bmiHeader.biBitCount == 32) &&
|
||||
bitmap->bmiHeader.biCompression == BI_RGB) {
|
||||
// already in canonical form
|
||||
String image(src, srcSize);
|
||||
String image(static_cast<char const*>(src), srcSize);
|
||||
GlobalUnlock(data);
|
||||
return image;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue