summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsonyps5201314 <sonyps5201314@gmail.com>2021-12-29 08:18:37 (GMT)
committerGitHub <noreply@github.com>2021-12-29 08:18:37 (GMT)
commitf82a603cfb04165ffbe143e87b60ada7943b607b (patch)
tree8c638a7b58d1e7942966c3a81166f4886168b421
parent7a25c8545b1d0de3716ed19d272ec295fabdb5ff (diff)
downloadcv2pdb-f82a603cfb04165ffbe143e87b60ada7943b607b.zip
cv2pdb-f82a603cfb04165ffbe143e87b60ada7943b607b.tar.gz
cv2pdb-f82a603cfb04165ffbe143e87b60ada7943b607b.tar.bz2
fix for UNC path (#70)
* fix for UNC path
-rw-r--r--src/main.cpp10
1 files changed, 10 insertions, 0 deletions
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] == ':')
{