Commit aaafbc79 authored by Vincent Béron's avatar Vincent Béron Committed by Alexandre Julliard

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

only with Install.
parent 3496689a
......@@ -283,19 +283,20 @@ int main(int argc, char *argv[])
}
}
if(FunctionInstall)
if(Properties[strlen(Properties)-1] == ' ')
{
if(Properties[strlen(Properties)-1] == ' ')
Properties[strlen(Properties)-1] = 0;
TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)-1);
if(!TempStr)
{
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;
fprintf(stderr, "Out of memory!\n");
ExitProcess(1);
}
Properties = TempStr;
}
if(FunctionInstall)
{
if(GotProductCode)
{
WINE_FIXME("Product code treatment not implemented yet\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment