Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Stewart committed Jan 29, 2021
1 parent 751f3f4 commit aa81919
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion EditPath.iss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
; * At uninstall, removes dir from Path if custom setting present
; * Unloads and deletes DLL and removes app dir at uninstall deinitialize

#if ComparePackedVersion(Ver, 6) < 0
#if Ver < EncodeVer(6,0,0,0)
#error This script requires Inno Setup 6 or later
#endif

Expand Down
8 changes: 4 additions & 4 deletions EditPath.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 4,0,0,0
PRODUCTVERSION 4,0,0,0
FILEVERSION 4,0,1,0
PRODUCTVERSION 4,0,1,0
FILEOS 0x4
FILETYPE 1
{
Expand All @@ -10,12 +10,12 @@ FILETYPE 1
{
VALUE "CompanyName", ""
VALUE "FileDescription", "EditPath.exe"
VALUE "FileVersion", "4.0.0.0"
VALUE "FileVersion", "4.0.1.0"
VALUE "InternalName", "EditPath.exe"
VALUE "LegalCopyright", "Copyright 2021 by Bill Stewart (bstewart at iname.com)"
VALUE "OriginalFilename", "EditPath.exe"
VALUE "ProductName", ""
VALUE "ProductVersion", "4.0.0.0"
VALUE "ProductVersion", "4.0.1.0"
}
}

Expand Down
1 change: 1 addition & 0 deletions PathMgr.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function IsDirInPath(const DirName: pwidechar; const PathType: DWORD; FindType:
var
PathFindType: TPathFindType;
begin
if PathType > 1 then exit(ERROR_INVALID_PARAMETER);
result := wsIsDirInPath(DirName, TPathType(PathType), PathFindType);
FindType^ := DWORD(PathFindType);
end;
Expand Down
2 changes: 1 addition & 1 deletion PathMgr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function IsDirInPath {
$intPathType = GetSystemOrUser $pathType
$findType = $null
$result = $PathMgr::IsDirInPath($dirName,$intPathType,[Ref] $findType)
if ( ($result -eq 0) ) {
if ( $result -eq 0 ) {
$result = $findType
}
$result
Expand Down
8 changes: 4 additions & 4 deletions PathMgr.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEVERSION 1,0,1,0
PRODUCTVERSION 1,0,1,0
FILEOS 0x4
FILETYPE 1
{
Expand All @@ -10,12 +10,12 @@ FILETYPE 1
{
VALUE "CompanyName", ""
VALUE "FileDescription", "PathMgr.dll"
VALUE "FileVersion", "1.0.0.0"
VALUE "FileVersion", "1.0.1.0"
VALUE "InternalName", "PathMgr.dll"
VALUE "LegalCopyright", "Copyright 2021 by Bill Stewart (bstewart at iname.com)"
VALUE "OriginalFilename", "PathMgr.dll"
VALUE "ProductName", ""
VALUE "ProductVersion", "1.0.0.0"
VALUE "ProductVersion", "1.0.1.0"
}
}

Expand Down
11 changes: 11 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# PathMgr.dll Version History

## 1.0.1 (29 Jan 2021)

* Fix: Validate `PathType` parameter for `IsDirInPath()` function.

* Fix: Corrected version check for Inno Setup sample script (thanks to Martijn Laan).

## 1.0.0 (27 Jan 2021)

* Initial version.

0 comments on commit aa81919

Please # to comment.