Cleanup of the properties last space removal, since it can be used not
only with Install.
This commit is contained in:
parent
3496689a89
commit
aaafbc7959
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue