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