Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup: skip only 18 WCHAR if keyName begins with \\registry\\machine
Note that keyName was declared char * in the original code. But now it is WCHAR*, so keyName+18 already does the right thing (skip 18 char) while modified code would now skip 36! Note that original code was using memcpy for this case of overlapping memory which is BAD and eventually UB. [skip travis]
- Loading branch information