Fixing warning C4101: unreferenced local variable

This is not exactly equivalent (haven't verified whether it matters).