Get rid of W->A calls

Eric Pouech pouech-eric at
Fri Sep 5 14:16:39 CDT 2003

hatky wrote:
> Ok, one last line:
>         strcpy(((char*)lpwh) + sizeof(WINHELP),
> lpHelpFile);
> I do not realy get what it means.... (but I know it
> shouldn't be this way becouse I get a warning:
> passing arg 1 of `strcpy' from incompatible pointer
> type
> lpHelpFile is a LPCWSTR unicode variable and 
> lpwh is of type WINHELP*
> where WINHELP
> typedef struct
> {
>     WORD size;
>     WORD command;
>     LONG data;
>     LONG reserved;
>     WORD ofsFilename;
>     WORD ofsData;
note also that the content of data (and its type) depends on the command 
parameter, and in some cases data is a string.
But, I don't know if WinHelpW expects unicode or ansi strings in that 
case... this should be tested on windows before

Eric Pouech

More information about the wine-devel mailing list