Skip to content

Commit

Permalink
fix typo (#30209)
Browse files Browse the repository at this point in the history
- ccall :GetClipboardData failed should throw a `GetClipboardData` error

(cherry picked from commit 3dd678f)
  • Loading branch information
inkydragon authored and KristofferC committed Dec 6, 2018
1 parent 8f2eb31 commit 393cd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/InteractiveUtils/src/clipboard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ elseif Sys.iswindows()
function clipboard()
systemerror(:OpenClipboard, 0==ccall((:OpenClipboard, "user32"), stdcall, Cint, (Ptr{Cvoid},), C_NULL))
pdata = ccall((:GetClipboardData, "user32"), stdcall, Ptr{UInt16}, (UInt32,), 13)
systemerror(:SetClipboardData, pdata==C_NULL)
systemerror(:GetClipboardData, pdata==C_NULL)
systemerror(:CloseClipboard, 0==ccall((:CloseClipboard, "user32"), stdcall, Cint, ()))
plock = ccall((:GlobalLock, "kernel32"), stdcall, Ptr{UInt16}, (Ptr{UInt16},), pdata)
systemerror(:GlobalLock, plock==C_NULL)
Expand Down

0 comments on commit 393cd59

Please sign in to comment.