[Bug 10649] Regression in RegQueryValueExA when called in unorthodox manner