From 4e02cb72be034ddad019d2ee70e8009ee762d9ed Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 4 Oct 2011 17:29:26 -0400 Subject: [PATCH] Windows: char* is not a Unicode string Do not treat the output of NetbiosName() as a wide_t when it is a char*. Change-Id: Iba4f1f30f1de4a9c3ded2f1e440ca9e4bc014379 Reviewed-on: http://gerrit.openafs.org/5549 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/client_exp/gui2fs.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/WINNT/client_exp/gui2fs.cpp b/src/WINNT/client_exp/gui2fs.cpp index 37f68f71c..4cb93b752 100644 --- a/src/WINNT/client_exp/gui2fs.cpp +++ b/src/WINNT/client_exp/gui2fs.cpp @@ -1027,11 +1027,7 @@ FixNetbiosPath(CString& path) CString nbroot; const char * nbname = NetbiosName(); -#ifdef UNICODE - nbroot.Format(_T("\\\\%S\\"), nbname); -#else nbroot.Format(_T("\\\\%s\\"), nbname); -#endif if (nbroot.CompareNoCase(path) == 0) { path.Append(_T("all\\")); -- 2.39.5