create process test (for review)
Alexandre Julliard
julliard at winehq.com
Mon Apr 1 14:02:49 CST 2002
Eric Pouech <eric.pouech at wanadoo.fr> writes:
> +static int get_file_name(char* buf, size_t len, const char* hint)
> +{
> + char* ptr;
> + if (strcmp(winetest_platform, "windows"))
> + {
> + sprintf(buf, "%s/%s", base, hint);
> + for (ptr = buf; *ptr; ptr++)
> + if (*ptr == '\\') *ptr = '/';
> + }
> + else
> + {
> + sprintf(buf, "%s\\%s", base, hint);
> + for (ptr = buf; *ptr; ptr++)
> + if (*ptr == '/') *ptr = '\\';
> + }
> + //fprintf(stderr, "resfile=%s\n", buf);
> + return 0;
> +}
You should never do that kind of things. The platform must be used
exclusively for todo tests, not for changing the test behavior. And
backslashes should work fine under Wine too.
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list