STABLE14-windows-lanahelper-20071001

uninitialized variable in lana_IsLoopback


(cherry picked from commit 7890ce9ead)
This commit is contained in:
Jeffrey Altman 2007-10-01 21:07:14 +00:00
parent 6ec3976304
commit 8ace88dfb7

View File

@ -445,6 +445,7 @@ extern "C" BOOL lana_IsLoopback(lana_number_t lana)
rv = RegOpenKeyEx(HKEY_LOCAL_MACHINE,AFSREG_CLT_SVC_PARAM_SUBKEY,0,KEY_READ,&hkConfig); rv = RegOpenKeyEx(HKEY_LOCAL_MACHINE,AFSREG_CLT_SVC_PARAM_SUBKEY,0,KEY_READ,&hkConfig);
if (rv == ERROR_SUCCESS) { if (rv == ERROR_SUCCESS) {
dummyLen = sizeof(regLana);
rv = RegQueryValueEx(hkConfig, szForceLanaLoopback, NULL, NULL, (LPBYTE) &regLana, &dummyLen); rv = RegQueryValueEx(hkConfig, szForceLanaLoopback, NULL, NULL, (LPBYTE) &regLana, &dummyLen);
RegCloseKey(hkConfig); RegCloseKey(hkConfig);