*** empty log message ***

svn path=/trunk/boinc/; revision=11774
This commit is contained in:
Rom Walton 2007-01-05 09:43:34 +00:00
parent 2b399ada16
commit ac416bb227
4 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -492,7 +492,6 @@ UINT BOINCCABase::GetRegistryValue(
{
LONG lReturnValue;
HKEY hkSetupHive;
DWORD dwType = REG_SZ;
DWORD dwSize = 0;
LPTSTR lpszRegistryValue = NULL;
tstring strMessage;
@ -517,7 +516,7 @@ UINT BOINCCABase::GetRegistryValue(
);
// Allocate the buffer space.
lpszRegistryValue = (LPTSTR)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize);
lpszRegistryValue = (LPTSTR)HeapAlloc(GetProcessHeap(), NULL, dwSize);
if ( NULL == lpszRegistryValue ) {
RegCloseKey(hkSetupHive);
return ERROR_INSTALL_FAILURE;
@ -528,11 +527,14 @@ UINT BOINCCABase::GetRegistryValue(
hkSetupHive,
strName.c_str(),
NULL,
&dwType,
NULL,
(LPBYTE)lpszRegistryValue,
&dwSize
);
// Send up the returned value.
if (lReturnValue == ERROR_SUCCESS) strValue = tstring(lpszRegistryValue);
// Cleanup
RegCloseKey(hkSetupHive);
HeapFree(GetProcessHeap(), NULL, lpszRegistryValue);
@ -540,8 +542,6 @@ UINT BOINCCABase::GetRegistryValue(
// One last check to make sure everything is on the up and up.
if (lReturnValue != ERROR_SUCCESS) return ERROR_INSTALL_FAILURE;
// Send up the returned value.
strValue = lpszRegistryValue;
strMessage = _T("Successfully retrieved registry value '") + strName;
strMessage += _T("' with a value of '");