From 3f823a9d5dab3d8a459e51e9cf7c46c00f32e738 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 20 Jul 2006 04:26:53 +0000 Subject: [PATCH] DEVEL15-windows-ifs-20060718 enable the afsifs code to build again (cherry picked from commit 66db2c9bec2b6a38aab49eb31a992701930bd055) --- src/WINNT/afsd/afsd_service.c | 7 +++++++ src/sys/pioctl_nt.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsd/afsd_service.c b/src/WINNT/afsd/afsd_service.c index 2f6e3d7c9..1e1daece6 100644 --- a/src/WINNT/afsd/afsd_service.c +++ b/src/WINNT/afsd/afsd_service.c @@ -59,6 +59,10 @@ int powerEventsRegistered = 0; */ static void afsd_notifier(char *msgp, char *filep, long line) { +#ifdef AFSIFS + int i; +#endif + if (filep) LogEvent(EVENTLOG_ERROR_TYPE, MSG_SERVICE_ERROR_STOP_WITH_MSG_AND_LOCATION, filep, line, msgp); @@ -1033,6 +1037,9 @@ afsd_Main(DWORD argc, LPTSTR *argv) #endif /* JUMP */ HMODULE hHookDll; HMODULE hAdvApi32; +#ifdef AFSIFS + int cnt; +#endif #ifdef _DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF /*| _CRTDBG_CHECK_ALWAYS_DF*/ | diff --git a/src/sys/pioctl_nt.c b/src/sys/pioctl_nt.c index f379449d1..9388a44b1 100644 --- a/src/sys/pioctl_nt.c +++ b/src/sys/pioctl_nt.c @@ -329,8 +329,10 @@ GetLSAPrincipalName(char * szUser, DWORD *dwSize) static long GetIoctlHandle(char *fileNamep, HANDLE * handlep) { +#ifndef AFSIFS char *drivep; char netbiosName[MAX_NB_NAME_LENGTH]; +#endif char tbuffer[256]=""; HANDLE fh; HKEY hk; @@ -637,6 +639,9 @@ Transceive(HANDLE handle, fs_ioctlRequest_t * reqp) long rcount; long ioCount; DWORD gle; +#ifdef AFSIFS + char *data; +#endif rcount = (long)(reqp->mp - reqp->data); if (rcount <= 0) { @@ -763,7 +768,7 @@ fs_GetFullPath(char *pathp, char *outPathp, long outSize) if (rootDir == INVALID_HANDLE_VALUE) return CM_ERROR_NOSUCHPATH; - wpath = tpath; + wpath = (wchar_t *)tpath; length = 0; if (!DeviceIoControl(rootDir, IOCTL_AFSRDR_GET_PATH, NULL, 0, wpath, 1000, &length, NULL)) { -- 2.39.5