[cmd] Don't change case of the batch filename

Alexandre Julliard julliard at winehq.org
Thu Feb 18 07:51:56 CST 2010

Paul Vriens <paul.vriens.wine at gmail.com> writes:

> diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
> index 28744d4..6cb732c 100644
> --- a/programs/cmd/batch.c
> +++ b/programs/cmd/batch.c
> @@ -91,7 +91,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
>    prev_context = context;
>    context = LocalAlloc (LMEM_FIXED, sizeof (BATCH_CONTEXT));
>    context -> h = h;
> -  context->batchfileW = WCMD_strdupW(string);
> +  context->batchfileW = WCMD_strdupW(file);

That whole function is broken, it should not be lowering the string in
the first place. It does this in order to use strstrW, but that's not
the right way to check the extension anyway.

In any case the test environment needs to be comparing paths in a
case-insensitive way, it doesn't make sense to require exact case.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list