diff options
| author | ashok <ashok> | 2016-07-10 06:33:20 (GMT) |
|---|---|---|
| committer | ashok <ashok> | 2016-07-10 06:33:20 (GMT) |
| commit | 6076256c3fd10a1dc4ab4a315fe018e68d0933ed (patch) | |
| tree | 556cfbd18af25ff7f6466543f76020235b422b65 | |
| parent | 25f7d3b86e41d2ba566960340642bb816ecfd7e8 (diff) | |
| download | tcl-6076256c3fd10a1dc4ab4a315fe018e68d0933ed.zip tcl-6076256c3fd10a1dc4ab4a315fe018e68d0933ed.tar.gz tcl-6076256c3fd10a1dc4ab4a315fe018e68d0933ed.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-x | win/tclWinFile.c | 3 |
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 */ |
