fix code error: add variable winSize's define.

The variable winSize should be defined in both code snippet above before used, because it's a local variable not a global variable.