Why did you remove the enforcement?

    enforce(len, sysErrorString(GetLastError()));