CLSCTX_INPROC_SERVER, IID_IShellFolder,
reinterpret_cast<LPVOID *>(&pShellFolder));
}
- if (SUCCEEDED(hr))
+ if (SUCCEEDED(hr))
{
hr = pShellFolder->ParseDisplayName(NULL, NULL, szAdapterGuid, NULL,
&pidl, NULL);
DWORD NameSize = MAX_PATH;
char *name = NULL;
HRESULT status;
-
+
// Convert the Guid string to Unicode. First we ask only for the size
// of the converted string. Then we allocate a buffer of sufficient
// size to hold the result of the conversion.
//status = getname_shellfolder(wGuid, wName, NameSize);
status = E_NOTIMPL;
- /* XXX end of pbh 9/11/03 temporary hack*/
+ /* XXX end of pbh 9/11/03 temporary hack*/
if (status == E_NOTIMPL) {
// The IShellFolder interface is not implemented on this platform.
LANAINFO * lanainfo;
// Open the NetBios Linkage key.
- status = RegOpenKeyEx(HKEY_LOCAL_MACHINE, RegNetBiosLinkageKeyName, 0,
+ status = RegOpenKeyEx(HKEY_LOCAL_MACHINE, RegNetBiosLinkageKeyName, 0,
KEY_QUERY_VALUE, &hkey);
-
+
if (status != ERROR_SUCCESS) {
#ifndef NOLOGGING
afsi_log("Failed to open NetBios Linkage key (status %ld)", status);
RegCloseKey(hkey);
return NULL;
}
- status = RegQueryValueEx(hkey, "Bind", 0, &type,
+ status = RegQueryValueEx(hkey, "Bind", 0, &type,
(BYTE *) bindpaths, &bindpathsize);
}
RegCloseKey(hkey);
}
memset(lanainfo, 0, sizeof(LANAINFO) * (nlana+1));
}
-
+
int index = 0;
// Iterate over the lana map entries and bind paths.
if (status == 0)
status = ncb.ncb_retcode;
if (ncb.ncb_retcode != 0) {
-#ifndef NOLOGGING
+#ifndef NOLOGGING
afsi_log("NCBASTAT failed: lana %u, status %ld", lana, status);
#endif
return FALSE;
}
return (memcmp(astat.status.adapter_address, kWLA_MAC, 6) == 0 ||
- memcmp(astat.status.adapter_address, kVista_WLA_MAC, 6) == 0
+ memcmp(astat.status.adapter_address, kVista_WLA_MAC, 6) == 0
#ifdef USE_VMWARE
|| memcmp(astat.status.adapter_address, kVMWare_MAC, 5) == 0
#endif
if(!(flags & LANA_NETBIOS_NAME_IN) || !pLana) {
dummyLen = sizeof(regLana);
rv = RegQueryValueEx(hkConfig, szLanAdapterValue, NULL, NULL, (LPBYTE) ®Lana, &dummyLen);
- if(rv != ERROR_SUCCESS)
+ if(rv != ERROR_SUCCESS)
regLana = -1;
} else
regLana = *pLana;
if(!(flags & LANA_NETBIOS_NAME_IN) || !pIsGateway) {
dummyLen = sizeof(regGateway);
rv = RegQueryValueEx(hkConfig, szIsGatewayValue, NULL, NULL, (LPBYTE) ®Gateway, &dummyLen);
- if(rv != ERROR_SUCCESS)
+ if(rv != ERROR_SUCCESS)
regGateway = 0;
} else
regGateway = *pIsGateway;
#ifdef USE_FINDLANABYNAME
dummyLen = sizeof(regNoFindLanaByName);
rv = RegQueryValueEx(hkConfig, szNoFindLanaByName, NULL, NULL, (LPBYTE) ®NoFindLanaByName, &dummyLen);
- if(rv != ERROR_SUCCESS)
+ if(rv != ERROR_SUCCESS)
regNoFindLanaByName = 0;
#endif
// in netbios names over 15 chars.
dummyLen = sizeof(regNbName);
rv = RegQueryValueEx(hkConfig, szNetbiosNameValue, NULL, NULL, (LPBYTE) ®NbName, &dummyLen);
- if(rv != ERROR_SUCCESS)
+ if(rv != ERROR_SUCCESS)
strcpy(regNbName, "AFS");
else {
/* Max Suffix Length is 6 */
regLana = -1;
regGateway = 0;
}
-#ifdef USE_FINDLANABYNAME
+#ifdef USE_FINDLANABYNAME
regNoFindLanaByName = 0;
#endif
strcpy(regNbName, "AFS");
}
- if(regLana < 0 || regLana > MAX_LANA)
+ if(regLana < 0 || regLana > MAX_LANA)
regLana = -1;
if(regLana == -1) {
if(nLana == LANA_INVALID && !regGateway) {
nLana = lana_FindLoopback(!(flags & LANA_NETBIOS_NO_RESET));
}
- if(nLana != LANA_INVALID)
+ if(nLana != LANA_INVALID)
regLana = nLana;
}
}
}
- if(pLana)
+ if(pLana)
*pLana = regLana;
- if(pIsGateway)
+ if(pIsGateway)
*pIsGateway = regGateway;
strcpy(buffer, nbName);
if(SUCCEEDED(lana_GetUncServerNameEx(szName,NULL,NULL,type))) {
#ifdef _UNICODE
mbswcs(name,szName,MAX_NB_NAME_LENGTH);
-#else
+#else
strncpy(name,szName,MAX_NB_NAME_LENGTH);
#endif
} else {