cmd: Fix loop termination check in WCMD_batch.
This commit is contained in:
parent
f3c40f925d
commit
271eaf5c9d
programs/cmd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue