Message117308
This happens because RegQueryInfoKeyA returns maximum value
name length not in *Ansi* characters but in *Unicode" characters.
I don't know clue why.
http://msdn.microsoft.com/en-us/library/ms724902%28VS.85%29.aspx
In multibyte environment, 2 or 3 bytes characters are
mapped to one size unicode. So usually, the length of *Ansi*
characters are larger than or equals to the length of *Unicode*
characters. If every Ansi characters are mapped to one size
Unicode, lengthes are equal, so probably this issue won't happen.
I'll attach the patch to fix this issue. But be care, this is not
tested so densely. At least, the script to reproduce this issue
ran fine. |
|
Date |
User |
Action |
Args |
2010-09-24 16:56:29 | ocean-city | set | recipients:
+ ocean-city, vstinner, tim.golden, brian.curtin, kzmi |
2010-09-24 16:56:29 | ocean-city | set | messageid: <1285347389.42.0.696166592125.issue9937@psf.upfronthosting.co.za> |
2010-09-24 16:56:28 | ocean-city | link | issue9937 messages |
2010-09-24 16:56:27 | ocean-city | create | |
|