From 078db03a52847e67debebea022b0301c10d0655b Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 4 Apr 2011 17:22:17 +0100 Subject: [PATCH] NULL Window handle for OpenClipboard --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 13055eff4..ccd6563be 100644 --- a/src/misc.c +++ b/src/misc.c @@ -387,7 +387,7 @@ void clipboard_push_text(char * text) CFDataRef data = CFDataCreate(kCFAllocatorDefault, text, strlen(text)); PasteboardPutItemFlavor(newclipboard, (PasteboardItemID)1, CFSTR("com.apple.traditional-mac-plain-text"), data, 0); #elif defined WIN32 - if(OpenClipboard()) + if(OpenClipboard(NULL)) { HGLOBAL cbuffer; char * glbuffer;