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
  • Loading branch information
inkydragon authored and ararslan committed Nov 30, 2018
1 parent 055da33 commit 3dd678f
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 3dd678f

Please sign in to comment.