BUG: RegQueryValueEx()May Fail When lpszValueName Is NULL
Last reviewed: October 20, 1997 |
The information in this article applies to:
SYMPTOMSIn certain circumstances, namely when you are accessing a remote registry key, passing NULL as the second parameter to RegQueryValueEx may cause that function to fail. In this case, GetLastError() will return error 14:
Not enough storage is available to complete this operation RESOLUTIONTo workaround this, pass the NULL string ("") as the second parameter to RegQueryValueEx().
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
RegQueryValueEx() fails. GetLastError() returns 14.
|
Additional query words: win95 |
Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.