Remove "env, " from "return env, GetControlPointer..." since the left side of a comma operator has no effect. This was presumably a copy/paste error from the function above it.