cmd: Fix loop termination check in WCMD_batch.

Robert Shearman rob at codeweavers.com
Mon Feb 25 03:00:07 CST 2008


The current check is wrong because sizeof(extension_batch) is equal to 2 
* WCMD_BATCH_EXT_SIZE * sizeof(WCHAR) and so already includes 
sizeof(WCHAR). Change the check to 
sizeof(extension_batch)/(WCMD_BATCH_EXT_SIZE*sizeof(WCHAR)) to get the 
required value of 2.
---
  programs/cmd/batch.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0b8914647a525a89855b0e72b546a2b84109b1b7.diff
Type: text/x-patch
Size: 580 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080225/a661001b/attachment.bin 


More information about the wine-patches mailing list