From f82a603cfb04165ffbe143e87b60ada7943b607b Mon Sep 17 00:00:00 2001 From: sonyps5201314 Date: Wed, 29 Dec 2021 16:18:37 +0800 Subject: fix for UNC path (#70) * fix for UNC path --- src/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2273c33..f0c3b6f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,6 +62,16 @@ void makefullpath(TCHAR* pdbname) TCHAR fullname[260]; TCHAR* pfullname = fullname; + if (!pdbname || T_strlen(pdbname) < 2) + { + return; + } + // If the path starts with "\\\\", it is considered to be a full path, such as UNC path, VolumeGUID path: "\\\\?\\Volume" + if (pdbname[0] == '\\' && pdbname[1] == '\\') + { + return; + } + int drive = 0; if (pdbname[0] && pdbname[1] == ':') { -- cgit v0.12