Unlock/LockWindowUpdate DOESN
fixed type coercion errors, swapped

some uses of CString with std::string
Revert "fixed type coercion errors, swapped"

This reverts commit 86051dfb4ced4f02d2180db2bdd84121f26bee88.