summaryrefslogtreecommitdiffstats
path: root/win/tclWinReg.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)
commit7208478d1c5c7ed65b3d0bdaced2740830f3859b (patch)
treeeef639b380b170cca7cd66f4c51ec6ac69e1a03a /win/tclWinReg.c
parent20547771bb29c967bf3eb2c0d8b17df50ddb8950 (diff)
downloadtcl-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/tclWinReg.c')
-rw-r--r--win/tclWinReg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 9ef62c6..a0b4e90 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -853,7 +853,7 @@ GetValue(
Tcl_NewStringObj(Tcl_DStringValue(&buf),
Tcl_DStringLength(&buf)));
- while (*wp++ != 0) {/* empty body */}
+ while (*wp++ != 0); /* empty loop body */
p = (char *) wp;
Tcl_DStringFree(&buf);
}
@@ -937,7 +937,6 @@ GetValueNames(
size = MAX_KEY_LENGTH;
while (RegEnumValueW(key,index, (WCHAR *)Tcl_DStringValue(&buffer),
&size, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
-
Tcl_DStringInit(&ds);
Tcl_WCharToUtfDString((const WCHAR *)Tcl_DStringValue(&buffer), size, &ds);
name = Tcl_DStringValue(&ds);