[PATCH 3/4] winevdm: move out of loop strlen for better codegeneration by compiler and refactor