mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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 <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
07f771e665
commit
4e02cb72be
@ -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\\"));
|
||||
|
Loading…
Reference in New Issue
Block a user