cmd: Fix loop termination check in WCMD_batch.

This commit is contained in:
Rob Shearman 2008-02-25 09:00:07 +00:00 committed by Alexandre Julliard
parent f3c40f925d
commit 271eaf5c9d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
BATCH_CONTEXT *prev_context;
if (startLabel == NULL) {
for(i=0; (i<((sizeof(extension_batch) * sizeof(WCHAR))/WCMD_BATCH_EXT_SIZE)) &&
for(i=0; (i<sizeof(extension_batch)/(WCMD_BATCH_EXT_SIZE * sizeof(WCHAR))) &&
(h == INVALID_HANDLE_VALUE); i++) {
strcpyW (string, file);
CharLower (string);