Menu

#602 RegQueryValueEx on empty multistring returns non-empty list

closed-fixed
nobody
win32 (141)
5
2012-06-04
2012-06-01
No

Somewhere along the line, win32api.RegQueryValueEx stopped returning [] for an empty multistring, and started returning [''], which is a very different and broken. Unfortunately, I'm not sure how far back this has been broken; I've only recently undertaken converting all our code from python 2.3.5 and pywin32 204 to python 2.7.3 and pywin32 217. It worked in that earlier incarnation, but as of the latest versions, this no longer functions properly.

I've attached a trivial python script that clearly demonstrates the problem.

Discussion

  • William Sadkin

    William Sadkin - 2012-06-01

    code demonstrating bug when reading empty multistrings from the registry

     
  • Roger Upole

    Roger Upole - 2012-06-04
    • status: open --> closed-fixed
     
  • Roger Upole

    Roger Upole - 2012-06-04

    This has been fixed, also added a test for this in test_win32api.py.

     
  • William Sadkin

    William Sadkin - 2012-06-05

    Thanks, Roger, that was fast! (Any idea when the next build (218) will be done?)

     
  • Roger Upole

    Roger Upole - 2012-06-07

    You're welcome. Not sure when Mark is planning another release.