@@ -530,17 +530,17 @@ function tempname(parent::AbstractString=tempdir(); cleanup::Bool=true)
530530 RPC_S_OUT_OF_MEMORY = 14
531531
532532 id = Ref {GUID} ()
533- r = ccall ((:UuidCreate ,:Rpcrt4 ), Cint, (Ref{GUID},), id)
533+ r = ccall ((:UuidCreate ,:Rpcrt4 ), stdcall, Cint, (Ref{GUID},), id)
534534 (r == 0 || r == RPC_S_UUID_LOCAL_ONLY) || (r == RPC_S_UUID_NO_ADDRESS && error (" Cannot get Ethernet or token-ring hardware address for this computer." ))
535535
536536 nameptr = Ref {Ptr{Cwchar_t}} ()
537- r = ccall ((:UuidToStringW , :Rpcrt4 ), Cint, (Ref{GUID}, Ref{Ptr{Cwchar_t}}), id, nameptr)
537+ r = ccall ((:UuidToStringW , :Rpcrt4 ), stdcall, Cint, (Ref{GUID}, Ref{Ptr{Cwchar_t}}), id, nameptr)
538538 r == 0 || (r == RPC_S_OUT_OF_MEMORY && error (" Out of memory" )) || error (" cannot convert UIUD to string" )
539539
540- namebuf = unsafe_wrap (Vector{Cwchar_t}, nameptr[], ccall (:wcslen , UInt, (Ptr{Cwchar_t},), nameptr[]))
540+ namebuf = unsafe_wrap (Vector{Cwchar_t}, stdcall, nameptr[], ccall (:wcslen , UInt, (Ptr{Cwchar_t},), nameptr[]))
541541 name = transcode (String, namebuf)
542542
543- @assert ccall ((:RpcStringFreeW , :Rpcrt4 ), Cint, (Ref{Ptr{Cwchar_t}},), nameptr) == 0
543+ ccall ((:RpcStringFreeW , :Rpcrt4 ), Cint, (Ref{Ptr{Cwchar_t}},), nameptr) == 0
544544
545545 filename = joinpath (parent, temp_prefix * name)
546546 if ! cleanup
0 commit comments