summaryrefslogtreecommitdiffstats
path: root/win/tclWinTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-07 18:23:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-07 18:23:15 (GMT)
commitfffb0bdce5640858681e04fc97778664ef2a0e43 (patch)
tree48efc394b7f60603916acf10d7fae11f99b76cf8 /win/tclWinTest.c
parent8c5476848accca82b9dedf7f919ad0a44d726030 (diff)
parent82acd6a35a2efe65efe21a1ee63710ee8a7af8ce (diff)
downloadtcl-fffb0bdce5640858681e04fc97778664ef2a0e43.zip
tcl-fffb0bdce5640858681e04fc97778664ef2a0e43.tar.gz
tcl-fffb0bdce5640858681e04fc97778664ef2a0e43.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinTest.c')
-rw-r--r--win/tclWinTest.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index deff000..c7abcdc 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.c
@@ -425,7 +425,6 @@ TestplatformChmod(
DWORD attr, newAclSize;
PACL newAcl = NULL;
int res = 0;
- SID_IDENTIFIER_AUTHORITY worldAuthority = SECURITY_WORLD_SID_AUTHORITY;
HANDLE hToken = NULL;
int i;
@@ -457,7 +456,7 @@ TestplatformChmod(
GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
goto done;
}
- pTokenUser = Tcl_Alloc(dw);
+ pTokenUser = (TOKEN_USER *)Tcl_Alloc(dw);
if (!GetTokenInformation(hToken, TokenUser, pTokenUser, dw, &dw)) {
goto done;
}
@@ -499,7 +498,7 @@ TestplatformChmod(
GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
goto done;
}
- pTokenGroup = Tcl_Alloc(dw);
+ pTokenGroup = (TOKEN_PRIMARY_GROUP *)Tcl_Alloc(dw);
if (!GetTokenInformation(hToken, TokenPrimaryGroup, pTokenGroup, dw, &dw)) {
Tcl_Free(pTokenGroup);
goto done;
@@ -566,7 +565,7 @@ TestplatformChmod(
newAclSize +=
offsetof(ACCESS_ALLOWED_ACE, SidStart) + aceEntry[i].sidLen;
}
- newAcl = Tcl_Alloc(newAclSize);
+ newAcl = (PACL)Tcl_Alloc(newAclSize);
if (!InitializeAcl(newAcl, newAclSize, ACL_REVISION)) {
goto done;
}