Hi,

Ruby 1.8.2
Windows XP

Why does this cause an error?

require "Win32API"

PathIsURL = Win32API.new("shlwapi","PathIsURL","P","L")

path = "file:///foo/bar"
path.freeze

if PathIsURL.call(path) > 0
   puts "yes"
else
   puts "no"
end

puts path

As far as I can tell, path isn't being modified.  What's happening?

Regards,

Dan