New submission from Andrew Ziem <ahz...@gmail.com>: QueryValueEx only returns one string when the contents are double null terminated, yet QueryValueEx works when the string is singly null terminated.
In Python 2.5.4 on Windows XP Sp3, the first key-value only returns the first part up to \0\0. ------------------- C:\>reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v Pending FileRenameOperations ! REG.EXE VERSION 3.0 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager PendingFileRenameOperations REG_MULTI_SZ \??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Program Files\Google\GoogleToolbarNotifier\5.2.4204.1700\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\A pplication Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\UpdateDir\0\0\0 C:\>reg query "HKLM\SYSTEM\CurrentControlSet\Services\Browser" /v DependOnService ! REG.EXE VERSION 3.0 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser DependOnService REG_MULTI_SZ LanmanWorkstation\0LanmanServer\0\0 ---------- components: Windows messages: 90300 nosy: AndrewZiem severity: normal status: open title: _winreg.QueryValueEx confused on double null terminated strings type: behavior versions: Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6443> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com