Yeah, for some reason I was thinking that the WideCharToMultiByte was failing because of allocation, but of course, that's not going to happen...