diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-09-07 21:55:53 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-09-07 21:55:53 +0000 |
commit | 6ecbbd73e47eb14d144925421294702eff8370ff (patch) | |
tree | ef338ea7e0f642b2f6ec0e9e6468cbf37d418ca1 /lib | |
parent | 783e3baacc9e101c540fd2cb39e94c02d32f8e72 (diff) |
No need to print syslog() messages any more, now that we have a logging
framework. (merges [1814])
Diffstat (limited to 'lib')
-rw-r--r-- | lib/win32/emu.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp index 1a6b0e79..071dc788 100644 --- a/lib/win32/emu.cpp +++ b/lib/win32/emu.cpp @@ -509,8 +509,16 @@ std::string ConvertPathToAbsoluteUnicode(const char *pFileName) tmpStr = ""; return tmpStr; } - - if (filename.length() >= 1 && filename[0] == '\\') + + if (filename.length() > 2 && filename[0] == '\\' && + filename[1] == '\\') + { + tmpStr += "UNC\\"; + filename.replace(0, 2, ""); + // \\?\UNC\<server>\<share> + // see http://msdn2.microsoft.com/en-us/library/aa365247.aspx + } + else if (filename.length() >= 1 && filename[0] == '\\') { // root directory of current drive. tmpStr = wd; @@ -1520,8 +1528,8 @@ void syslog(int loglevel, const char *frmt, ...) sHaveWarnedEventLogFull = false; } - printf("%s\r\n", buffer); - fflush(stdout); + // printf("%s\r\n", buffer); + // fflush(stdout); } int emu_chdir(const char* pDirName) |