Eric Pouech eric.pouech@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.