Fixed assorted updater bugs (bug 3697, r=pred, a121=blocking).

This commit is contained in:
David Anderson
2009-03-06 17:41:35 -05:00
parent 2c7555366f
commit c0ee2ce345
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ static void PumpUpdate(void *data)
smutils->BuildPath(Path_SM, path, sizeof(path), "gamedata/%s", part->file);
if (libsys->IsPathDirectory(path))
{
continue;
goto skip_create;
}
if (!libsys->CreateFolder(path))
{
@@ -157,7 +157,7 @@ static void PumpUpdate(void *data)
if (fp == NULL)
{
AddUpdateError("Could not open %s for writing", path);
return;
goto skip_create;
}
if (fwrite(part->data, 1, part->length, fp) != part->length)
{