Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 1383f48

Browse files
committed
Some nitpicks
1 parent 9abc425 commit 1383f48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/registry.iss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ procedure AppendPath(Dir: String);
3030
var
3131
RegValue: String;
3232
begin
33-
if not (Dir = '') then begin
34-
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', RegValue);
33+
if Dir <> '' then begin
34+
RegValue := FuncRegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path');
3535
if Pos(Dir, RegValue) = 0 then begin
3636
RegWriteStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', RegValue + ';' + Dir);
3737
end;

src/util.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var
2222
DelimPos: Integer;
2323
begin
2424
DelimPos := Pos(Delim, Str);
25-
if (DelimPos = 0) then begin
25+
if DelimPos = 0 then begin
2626
StrList.Add(Str);
2727
Result := StrList;
2828
end else begin

0 commit comments

Comments
 (0)