Skip to content

Commit

Permalink
main.cpp: fix mistake on install
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 authored Jun 4, 2018
1 parent e9e0ec1 commit 13a7375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ int InstallDist(wchar_t *TargetName,wchar_t *tgzname)
{
wprintf(L"Installing...\n");
HRESULT hr = WslRegisterDistribution(TargetName,tgzname);
if(SUCCEEDED(hr))
if(FAILED(hr))
{
fwprintf(stderr,L"ERROR:Installation Failed!\nHRESULT:0x%x\n",hr);
wprintf(L"Press any key to continue...");
Expand Down

0 comments on commit 13a7375

Please sign in to comment.