summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashok <ashok>2016-07-10 06:33:20 (GMT)
committerashok <ashok>2016-07-10 06:33:20 (GMT)
commit1a4a8552102094aeb6294acf74d78623df4206d3 (patch)
tree556cfbd18af25ff7f6466543f76020235b422b65
parent39488ce3ef11fcbac48bd3c7e35b3ba3fb80c2de (diff)
downloadtcl-1a4a8552102094aeb6294acf74d78623df4206d3.zip
tcl-1a4a8552102094aeb6294acf74d78623df4206d3.tar.gz
tcl-1a4a8552102094aeb6294acf74d78623df4206d3.tar.bz2
Fix compiler warnings (const-ness and unused label) that did not show up
in the non-optimized build before last checkin.
-rwxr-xr-xwin/tclWinFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index dbfdfd0..4d7500b 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 */