Displaying 1 result from an estimated 1 matches for "errtest".
Did you mean:
arrtest
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
...: 3
Submitted By: John Whitley (whitley)
Assigned to: Nobody (None)
Summary: Windows::Error.get_last_error only returns the first character (PATCH)
Initial Comment:
Platform/version info:
Windows XP SP3, ruby 1.8.6-p114, windows-pr-0.8.6
Repro code:
require ''windows/error''
class ErrTest; include Windows::Error; end
et = ErrTest.new
puts et.get_last_error(100)
Expected result (on english Win XP SP3):
Cannot create another system semaphore.
Actual result:
C
It seems that FormatMessage is being bound to the widechar variant (FormatMessageW) instead of the narrow variant (FormatMes...