[EMAIL PROTECTED] wrote: > Message: 3 > Date: Fri, 29 Feb 2008 12:50:53 +0100 > From: Alexandre Julliard <[EMAIL PROTECTED]> > Subject: Re: Conformance tests for LoadStringW and LoadStringA > To: Christopher <[EMAIL PROTECTED]> > Cc: wine-devel@winehq.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > Christopher <[EMAIL PROTECTED]> writes: > > >> > + ok(!memcmp(copiedstring, returnedstring, (length2 + >> > 1)*sizeof(WCHAR)), >> > + "LoadStringW returned a string that does not match the string >> > pointed to by the pointer it returned. \ >> > + returnedstring = %ls, copiedstring = %ls", (wchar_t >> > *)returnedstring, (wchar_t *)copiedstring); >> > > You cannot cast a WCHAR* to a wchar_t*. > > -- Alexandre Julliard [EMAIL PROTECTED]
Thanks, I assumed they were the same since under Windows WCHAR is typedef'ed as wchar_t. Is the proper way to handle this to use WideCharToMultiByte() on returnedstring and copiedstring, and then pass the converted (multibyte) strings to ok()? Christopher Berner