Skip to content

Commit

Permalink
Merge pull request #14 from processhacker/master
Browse files Browse the repository at this point in the history
[pull] master from processhacker:master
  • Loading branch information
pull[bot] authored Sep 24, 2020
2 parents d62a85d + 9916b20 commit e1db06f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image.
image: Visual Studio 2019
image: Visual Studio 2019 Preview
#cache: C:\projects\processhacker

# Version format.
Expand Down
20 changes: 15 additions & 5 deletions phlib/wslsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ BOOLEAN PhGetWslDistributionFromPath(
}

if (LxssDistroPath)
{
*LxssDistroPath = lxssDistroPath;
else
{
if (lxssDistroPath)
PhDereferenceObject(lxssDistroPath);
}

if (LxssFileName)
Expand All @@ -128,14 +131,21 @@ BOOLEAN PhGetWslDistributionFromPath(

*LxssFileName = lxssFileName;
}
else
{
if (lxssFileName)
PhDereferenceObject(lxssFileName);
}

if (LxssDistroName)
{
*LxssDistroName = lxssDistributionName;
return TRUE;
}
else
{
if (lxssDistributionName)
{
*LxssDistroName = lxssDistributionName;
return TRUE;
}
PhDereferenceObject(lxssDistributionName);
}

return FALSE;
Expand Down

0 comments on commit e1db06f

Please sign in to comment.