Gabriel Genellina <gagsl-...@yahoo.com.ar> added the comment:

3rd argument to GetEnvironmentVariableW is the buffer size in 
*characters*, not bytes. Your buffer has room for 20 characters only, 
not 40. You should use create_unicode_buffer instead.

Probably the names create_unicode_buffer/create_string_buffer should be 
revised in 3.x

----------
nosy: +gagenellina

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5074>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to