Fix Windows code - remove pointer dereference (Fix #2)