Menu

#1200 CompareStrW is used incorectly causeing various bugs

v3.0
closed
nobody
None
2014-08-15
2008-05-15
No

Some code uses CompareStringW and passes 0 as the length of the strings.

I belive it should pass in -1 to specify the strings are NULL terminated.

This Breaks Certificate uninstall and deletes all the certificates it can on the box which is the bug that affects me.

Patch attached.

Discussion

  • Garth Bushell

    Garth Bushell - 2008-05-15

    Patch to fix issue

     
  • Bob Arnson

    Bob Arnson - 2008-05-15

    Logged In: YES
    user_id=26581
    Originator: NO

    v3.0.4109.0 has no instances of CompareStringW used with 0 counts.

     
MongoDB Logo MongoDB