Hans Leidekker : msi: GetUserName sets last error to ERROR_INSUFFICIENT_BUFFER if the buffer is too small .