summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-07-10 19:33:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-07-10 19:33:46 (GMT)
commit2de34a7674bffea69b889e1326b18e442d8e8589 (patch)
tree90edf5315f700ccc908443842aab0f3a0507c9bb /win/tclWinFile.c
parentda4f0a3cc9ce8134a629c12ce02572e0ee69bb3b (diff)
parent958e525baf3292c31b387ce0306a8dc984419c6c (diff)
downloadtcl-2de34a7674bffea69b889e1326b18e442d8e8589.zip
tcl-2de34a7674bffea69b889e1326b18e442d8e8589.tar.gz
tcl-2de34a7674bffea69b889e1326b18e442d8e8589.tar.bz2
merge 8.6
Diffstat (limited to 'win/tclWinFile.c')
-rwxr-xr-xwin/tclWinFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 63abad9..3a856a1 100755
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -3159,7 +3159,7 @@ TclWinFileOwned(
native = Tcl_FSGetNativePath(pathPtr);
- if (GetNamedSecurityInfo(native, SE_FILE_OBJECT,
+ if (GetNamedSecurityInfo((LPTSTR) native, SE_FILE_OBJECT,
OWNER_SECURITY_INFORMATION, &ownerSid,
NULL, NULL, NULL, &secd) != ERROR_SUCCESS) {
/* Either not a file, or we do not have access to it in which
@@ -3186,7 +3186,6 @@ TclWinFileOwned(
CloseHandle(token);
}
-vamoose:
/* Free allocations and be done */
if (secd)
LocalFree(secd); /* Also frees ownerSid */