Skip to content

Commit

Permalink
main.c :return result values
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 authored Dec 16, 2017
1 parent aaedf2d commit 7a9fc72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main()
fwprintf(stderr,L"ERROR:WslApi.dll load failed(%s).\n",res);
wprintf(L"Press any key to continue...");
getchar();
return 1;
return res;
}


Expand All @@ -55,7 +55,7 @@ int main()
fwprintf(stderr,L"ERROR:Get Configuration failed!\nHRESULT:0x%x\n",res);
wprintf(L"Press any key to continue...");
getchar();
return 1;
return res;
}


Expand Down Expand Up @@ -111,7 +111,7 @@ int main()
{
(void) WslConfigureDistribution(TargetName,defaultUID,distributionFlags); //revert uid
fwprintf(stderr,L"ERROR:Configure Failed!\nHRESULT:0x%x\n",res);
return 1;
return res;
}
return 0;
}
Expand All @@ -132,7 +132,7 @@ int main()
if(res != 0)
{
fwprintf(stderr,L"ERROR:Configure Failed!\nHRESULT:0x%x\n",res);
return 1;
return res;
}
return 0;
}
Expand All @@ -157,7 +157,7 @@ int main()
if(res != 0)
{
fwprintf(stderr,L"ERROR:Configure Failed!\nHRESULT0x%x\n",res);
return 1;
return res;
}
return 0;
}
Expand All @@ -176,7 +176,7 @@ int main()
if(res != 0)
{
fwprintf(stderr,L"ERROR:Configure Failed!\nHRESULT:0x%x\n",res);
return 1;
return res;
}
return 0;
}
Expand Down Expand Up @@ -250,7 +250,7 @@ int main()
fwprintf(stderr,L"ERROR:Launch Interactive mode Failed!\nHRESULT:0x%x\n",res);
wprintf(L"Press any key to continue...");
getchar();
return 1;
return res;
}
}
else
Expand Down Expand Up @@ -280,7 +280,7 @@ int main()
fwprintf(stderr,L"ERROR:Installation Failed!\nHRESULT:0x%x\n",res);
wprintf(L"Press any key to continue...");
getchar();
return 1;
return res;
}
wprintf(L"Installation Complete!\n");
wprintf(L"Press any key to continue...");
Expand Down

0 comments on commit 7a9fc72

Please sign in to comment.