Fixed "warning C4101: '' : unreferenced local variable" warnings