Function strstr and MinGW

GOUJON Alexandre ale.goujon at gmail.com
Fri Nov 5 14:09:39 CDT 2010


Hi everyone,

I'm still trying to improve wine cmd but I'm stuck with my patch making 
tests failing.

After some investigations, I've found that my function which replace all 
@space@ by real spaces does not always work.
So I've written a test_case (attached code).
It runs perfectly on Ubuntu (compiled with gcc) but does nothing on 
Windows (compiled with i586-mingw32msvc-gcc).
In fact, on windows, strstr fails and so never goes into the while{ } loop.

Is MinGW the culprit ?
Should I use another function ?
Any idea ?

[Why *standard* function don't even work on Windows ?]

Thanks in advance !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 1262 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20101105/317d02a7/attachment.c>


More information about the wine-devel mailing list