Windows: no more _wcsdup; use wcsdup
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 6 Nov 2012 11:38:14 +0000 (06:38 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 8 Nov 2012 00:45:02 +0000 (16:45 -0800)
_wcsdup is not mapped by roken.h.  Use wcsdup which is.

Change-Id: I0f6bb3f5465c74ad52f992892fcbc9837c276c0c
Reviewed-on: http://gerrit.openafs.org/8364
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>

src/WINNT/afsd/rpc_wkssvc.c

index 6043325..805853e 100644 (file)
@@ -82,7 +82,7 @@ unsigned long NetrWkstaGetInfo(
         WkstaInfo->WkstaInfo101->wki101_lanroot = NULL;
     case  100:
         WkstaInfo->WkstaInfo100->wki100_computername = _wcsupr(wcsdup(s));
-        WkstaInfo->WkstaInfo100->wki100_langroup = _wcsdup(L"AFS");
+        WkstaInfo->WkstaInfo100->wki100_langroup = wcsdup(L"AFS");
         WkstaInfo->WkstaInfo100->wki100_platform_id = PLATFORM_ID_AFS;
         WkstaInfo->WkstaInfo100->wki100_ver_major = AFSPRODUCT_VERSION_MAJOR;
         WkstaInfo->WkstaInfo100->wki100_ver_minor = AFSPRODUCT_VERSION_MINOR;