Cleanup of the properties last space removal, since it can be used not

only with Install.
This commit is contained in:
Vincent Béron 2004-07-19 20:05:54 +00:00 committed by Alexandre Julliard
parent 3496689a89
commit aaafbc7959
1 changed files with 12 additions and 11 deletions

View File

@ -283,19 +283,20 @@ int main(int argc, char *argv[])
}
}
if(Properties[strlen(Properties)-1] == ' ')
{
Properties[strlen(Properties)-1] = 0;
TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)-1);
if(!TempStr)
{
fprintf(stderr, "Out of memory!\n");
ExitProcess(1);
}
Properties = TempStr;
}
if(FunctionInstall)
{
if(Properties[strlen(Properties)-1] == ' ')
{
Properties[strlen(Properties)-1] = 0;
TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)-1);
if(!TempStr)
{
fprintf(stderr, "Out of memory!\n");
ExitProcess(1);
}
Properties = TempStr;
}
if(GotProductCode)
{
WINE_FIXME("Product code treatment not implemented yet\n");