[Win32utils-devel] Pass by reference bug in win32/api?

Daniel Berger djberg96 at gmail.com
Fri Sep 28 22:19:30 EDT 2007


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 => "\000est"
p file1 => "\000est"

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

Regards,

Dan



More information about the win32utils-devel mailing list