NULL Window handle for OpenClipboard
This commit is contained in:
parent
5c079443f9
commit
078db03a52
@ -387,7 +387,7 @@ void clipboard_push_text(char * text)
|
|||||||
CFDataRef data = CFDataCreate(kCFAllocatorDefault, text, strlen(text));
|
CFDataRef data = CFDataCreate(kCFAllocatorDefault, text, strlen(text));
|
||||||
PasteboardPutItemFlavor(newclipboard, (PasteboardItemID)1, CFSTR("com.apple.traditional-mac-plain-text"), data, 0);
|
PasteboardPutItemFlavor(newclipboard, (PasteboardItemID)1, CFSTR("com.apple.traditional-mac-plain-text"), data, 0);
|
||||||
#elif defined WIN32
|
#elif defined WIN32
|
||||||
if(OpenClipboard())
|
if(OpenClipboard(NULL))
|
||||||
{
|
{
|
||||||
HGLOBAL cbuffer;
|
HGLOBAL cbuffer;
|
||||||
char * glbuffer;
|
char * glbuffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user