Get rid of W->A calls

Eric Pouech pouech-eric at wanadoo.fr
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;
> } WINHELP;
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
A+


-- 
Eric Pouech




More information about the wine-devel mailing list