Made search funcs use wide strings
Made search funcs use wide strings

This had the same problem as SHGetPathFromIdListU, it truncates strings.
Unfortunately this didn't fix a bug with japanese paths on my XP VM.

Also added cmpxchg for comparing the thread count.

thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap