diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-03-19 16:12:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-03-19 16:12:00 (GMT) |
commit | 7208478d1c5c7ed65b3d0bdaced2740830f3859b (patch) | |
tree | eef639b380b170cca7cd66f4c51ec6ac69e1a03a /win/tclWinTest.c | |
parent | 20547771bb29c967bf3eb2c0d8b17df50ddb8950 (diff) | |
download | tcl-7208478d1c5c7ed65b3d0bdaced2740830f3859b.zip tcl-7208478d1c5c7ed65b3d0bdaced2740830f3859b.tar.gz tcl-7208478d1c5c7ed65b3d0bdaced2740830f3859b.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.c | 9 |
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; } |