Thanks Lance,

That did the trick! Damn null terminators...

On 9/24/05, Lance Vorgin <[EMAIL PROTECTED]> wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> I can't hardly see straight, but I believe you forget to make room for the
> null terminator :P Try this crap:
>
> int iLen = strlen(lpcSong) + 1;
> WCHAR* lpwcSong = new WCHAR[iLen + 1]; //yay paranoia
> memset(lpwcSong, 0, (iLen + 1));
> MultiByteToWideChar(CP_ACP, 0, lpcSong, iLen, lpwcSong, iLen);
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
http://www.pixelfaction.com
AIM:ApeWithABrain

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to