summaryrefslogtreecommitdiffstats
path: root/win/tclWinTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-19 16:12:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-19 16:12:00 (GMT)
commit963276ee6d0ba32137fc09c691ffe93eda538e3e (patch)
treeeef639b380b170cca7cd66f4c51ec6ac69e1a03a /win/tclWinTest.c
parent64fd595e31d8a2a215ca65321c649100a279882d (diff)
downloadtcl-963276ee6d0ba32137fc09c691ffe93eda538e3e.zip
tcl-963276ee6d0ba32137fc09c691ffe93eda538e3e.tar.gz
tcl-963276ee6d0ba32137fc09c691ffe93eda538e3e.tar.bz2
Backport fix for [bda99f2393]: gets stdin problem when non-blocking - Windows
(cherry-pick): Fix indentation/brace usage style issues
Diffstat (limited to 'win/tclWinTest.c')
-rw-r--r--win/tclWinTest.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index 86f36b4..f2c9a86d 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.c
@@ -476,8 +476,8 @@ TestplatformChmod(
}
/* Get process SID */
- if (!GetTokenInformation(hToken, TokenUser, NULL, 0, &dw) &&
- GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
+ if (!GetTokenInformation(hToken, TokenUser, NULL, 0, &dw)
+ && GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
goto done;
}
pTokenUser = (TOKEN_USER *)ckalloc(dw);
@@ -486,9 +486,8 @@ TestplatformChmod(
}
aceEntry[nSids].sidLen = GetLengthSid(pTokenUser->User.Sid);
aceEntry[nSids].pSid = ckalloc(aceEntry[nSids].sidLen);
- if (!CopySid(aceEntry[nSids].sidLen,
- aceEntry[nSids].pSid,
- pTokenUser->User.Sid)) {
+ if (!CopySid(aceEntry[nSids].sidLen, aceEntry[nSids].pSid,
+ pTokenUser->User.Sid)) {
ckfree(aceEntry[nSids].pSid); /* Since we have not ++'ed nSids */
goto done;
}