[2/8] cmd: Fix FOR tab handling
Alexandre Julliard
julliard at winehq.org
Wed Aug 24 07:02:42 CDT 2011
Frédéric Delanoy <frederic.delanoy at gmail.com> writes:
> @@ -902,8 +902,10 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
> WIN32_FIND_DATAW fd;
> HANDLE hff;
> int i;
> - const WCHAR inW[] = {'i', 'n', ' ', '\0'};
> - const WCHAR doW[] = {'d', 'o', ' ', '\0'};
> + const WCHAR inW[] = {'i', 'n', ' ', '\0'};
> + const WCHAR inTabW[] = {'i', 'n', '\t', '\0'};
> + const WCHAR doW[] = {'d', 'o', ' ', '\0'};
> + const WCHAR doTabW[] = {'d', 'o', '\t', '\0'};
You don't want to duplicate every string this way. This needs some sort
of helper function.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list