mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
tchar-ptr-20040403
TCHAR != TCHAR * but MS VS .NET 2003 does not care. Why not?
This commit is contained in:
parent
4449276b5c
commit
0a0f0e023b
@ -575,19 +575,19 @@ int afsd_InitCM(char **reasonP)
|
||||
{
|
||||
HKEY hk;
|
||||
DWORD dwDisp;
|
||||
TCHAR value = TEXT("7001:UDP:*:Enabled:AFS Cache Manager Callback");
|
||||
TCHAR* value = TEXT("7001:UDP:*:Enabled:AFS Cache Manager Callback");
|
||||
if (RegCreateKeyEx (HKEY_LOCAL_MACHINE,
|
||||
"SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\DomainProfile\\GloballyOpenP",
|
||||
0, TEXT("container"), 0, KEY_SET_VALUE, NULL, &hk, &dwDisp) == ERROR_SUCCESS)
|
||||
{
|
||||
RegSetValueEx (hk, TEXT("7001:UDP"), NULL, REG_SZ, (PBYTE)value, sizeof(TCHAR) * (1+lstrlen(value)));
|
||||
RegSetValueEx (hk, TEXT("7001:UDP"), 0, REG_SZ, (PBYTE)value, sizeof(TCHAR) * (1+lstrlen(value)));
|
||||
RegCloseKey (hk);
|
||||
}
|
||||
if (RegCreateKeyEx (HKEY_LOCAL_MACHINE,
|
||||
"SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\StandardProfile\\GloballyOpenP",
|
||||
0, TEXT("container"), 0, KEY_SET_VALUE, NULL, &hk, &dwDisp) == ERROR_SUCCESS)
|
||||
{
|
||||
RegSetValueEx (hk, TEXT("7001:UDP"), NULL, REG_SZ, (PBYTE)value, sizeof(TCHAR) * (1+lstrlen(value)));
|
||||
RegSetValueEx (hk, TEXT("7001:UDP"), 0, REG_SZ, (PBYTE)value, sizeof(TCHAR) * (1+lstrlen(value)));
|
||||
RegCloseKey (hk);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user