Displaying 1 result from an estimated 1 matches for "string_addr".
Did you mean:
ring_addr
2009 Aug 02
2
win32-security, 1.9.x, encoding issue?
...security/sid.rb:111:in
`strip''
c:/Users/djberge/workspace/win32-security/lib/win32/security/sid.rb:111:in
`string_to_sid''
test/test_sid.rb:62:in `test_string_to_sid''
Where line 111 is the last line of this:
def self.string_to_sid(string)
sid_buf = 0.chr * 80
string_addr = [string].pack(''p*'').unpack(''L'')[0]
unless ConvertStringSidToSid(string_addr, sid_buf)
raise Error, get_last_error
end
sid_buf.strip
end
I searched on the web but I wasn''t really sure what the best or correct
solution was. I really hop...