in .NET spec, we have to skip file name in the fist argument
ref : https://msdn.microsoft.com/en-us/library/
aa288457(v=vs.71).aspx
Change-Id: If6de1ca6721445ade894c529cb9915db7aaf6084
_DBG("pkg : %s", info.pkg.c_str());
_DBG("type : %s", info.type.c_str());
- if (runtime->Launch(info.root.c_str(), info.path.c_str(), argc, argv))
+ // The launchpad pass the name of exe file to the first argument.
+ // For the C# spec, we have to skip this first argument.
+
+ if (runtime->Launch(info.root.c_str(), info.path.c_str(), argc-1, argv+1))
{
_ERR("Failed to launch");
}