"Michael GЭnnewig" MichaelGuennewig@gmx.de wrote:
But when I change the code to use the "static const WCHAR[]" the compiler complains: ,----- | factory.c: In function `AVIFILE_BasenameW': | factory.c:163: warning: comparison between pointer and integer | factory.c:163: warning: comparison between pointer and integer | factory.c:163: warning: comparison between pointer and integer `-----
So I have adjusted to use this:
static const WCHAR dotW = (WCHAR)'.';
The it compiles and works also for my. Is this okay?
No.
When it's I will change it with my next patch, which still waits to be verified and be submitted.
Look at other places in Wine source how to do it properly.
-- Dmitry.