@@ -899,12 +899,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
899
899
int bufindex = 0 , isabsolute = 0 ;
900
900
wchar_t * reparsetarget ;
901
901
BOOL isVolume = FALSE;
902
- #if VIRTUAL_CWD_DEBUG
903
902
char printname [MAX_PATH ];
904
- int printname_len ;
905
- #endif
906
903
char substitutename [MAX_PATH ];
907
- int substitutename_len ;
904
+ int printname_len , substitutename_len ;
908
905
int substitutename_off = 0 ;
909
906
910
907
if (++ (* ll ) > LINK_MAX ) {
@@ -931,7 +928,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
931
928
932
929
if (pbuffer -> ReparseTag == IO_REPARSE_TAG_SYMLINK ) {
933
930
reparsetarget = pbuffer -> SymbolicLinkReparseBuffer .ReparseTarget ;
934
- #if VIRTUAL_CWD_DEBUG
935
931
printname_len = pbuffer -> MountPointReparseBuffer .PrintNameLength / sizeof (WCHAR );
936
932
isabsolute = (pbuffer -> SymbolicLinkReparseBuffer .Flags == 0 ) ? 1 : 0 ;
937
933
if (!WideCharToMultiByte (CP_THREAD_ACP , 0 ,
@@ -944,7 +940,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
944
940
};
945
941
printname_len = pbuffer -> MountPointReparseBuffer .PrintNameLength / sizeof (WCHAR );
946
942
printname [printname_len ] = 0 ;
947
- #endif
948
943
949
944
substitutename_len = pbuffer -> MountPointReparseBuffer .SubstituteNameLength / sizeof (WCHAR );
950
945
if (!WideCharToMultiByte (CP_THREAD_ACP , 0 ,
@@ -960,7 +955,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
960
955
else if (pbuffer -> ReparseTag == IO_REPARSE_TAG_MOUNT_POINT ) {
961
956
isabsolute = 1 ;
962
957
reparsetarget = pbuffer -> MountPointReparseBuffer .ReparseTarget ;
963
- #if VIRTUAL_CWD_DEBUG
964
958
printname_len = pbuffer -> MountPointReparseBuffer .PrintNameLength / sizeof (WCHAR );
965
959
if (!WideCharToMultiByte (CP_THREAD_ACP , 0 ,
966
960
reparsetarget + pbuffer -> MountPointReparseBuffer .PrintNameOffset / sizeof (WCHAR ),
@@ -971,7 +965,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
971
965
return -1 ;
972
966
};
973
967
printname [pbuffer -> MountPointReparseBuffer .PrintNameLength / sizeof (WCHAR )] = 0 ;
974
- #endif
975
968
976
969
substitutename_len = pbuffer -> MountPointReparseBuffer .SubstituteNameLength / sizeof (WCHAR );
977
970
if (!WideCharToMultiByte (CP_THREAD_ACP , 0 ,
0 commit comments