List Info

Thread: Pass by reference bug in win32/api?




Pass by reference bug in win32/api?
country flaguser name
United States
2007-09-28 21:19:30
I spotted this as the result of the latest win32-file-stat
tests I've 
been running:

require 'windows/path'
include Windows::Path

file1 = 'test'
file2 = file1.dup

PathStripToRoot(file1)

p file1 => "00est"
p file1 => "00est"

Win32API (stdlib) doesn't do this. Is this our fault?

Regards,

Dan

_______________________________________________
win32utils-devel mailing list
win32utils-develrubyforge.org
http://rubyforge.org/mailman/listinfo/win32utils-devel


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )