Skip to content

Commit

Permalink
For ClipboardExtended plugin on Windows, fix typo and type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Mar 24, 2023
1 parent 314e5d9 commit 2ab50e1
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -87,8 +87,8 @@ sqPasteboardPutItemFlavordatalengthformatTypeformatLength(CLIPBOARDTYPE inPasteb
void
sqPasteboardPutItemFlavordatalengthformatType(CLIPBOARDTYPE inPasteboard, char *inData, sqInt dataLength, sqInt format)
{
HANDLE globalMem;
int nullTerminationBytes = 0, okSet, okClose;
HANDLE globalMem, okSet;
int nullTerminationBytes = 0, okClose;

if (dataLength <= 0) {
interpreterProxy->primitiveFailFor(PrimErrBadArgument);
Expand Down Expand Up @@ -183,7 +183,7 @@ sqPasteboardPutItemFlavordatalengthformatType(CLIPBOARDTYPE inPasteboard, char *
GlobalUnlock(globalMem);
okSet = SetClipboardData((UINT)format, globalMem);
okClose = CloseClipboard();
iif (!okSet || !okClose) {
if (!okSet || !okClose) {
GlobalFree(globalMem);
interpreterProxy->primitiveFailFor(PrimErrOperationFailed);
}
Expand Down

0 comments on commit 2ab50e1

Please sign in to comment.