Permalink
Browse files

installer: Fixed crash on attempting to change sub-components paths (…

…Code had not been adjusted to reflect the ListBox/String indirection level change)
  • Loading branch information...
1 parent 7c049b9 commit 1d762470590878b73c2a77196022f460d20604ea @jerstlouis jerstlouis committed Aug 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 installer/src/installer.ec
@@ -585,16 +585,16 @@ class Installer : Window
bool NotifyChanged(ListBox listBox, DataRow row)
{
Component * component = ((CheckItem *)listBox.GetData(componentField))->data;
- char path[MAX_LOCATION], relative[MAX_LOCATION] = "", ** newPath;
+ char path[MAX_LOCATION], relative[MAX_LOCATION] = "", * newPath;
char fullPath[MAX_LOCATION];
component->parent->GetFullPath(path);
strcpy(fullPath, path);
- newPath = (char **)row.GetData(locationField);
- if(newPath && *newPath)
+ newPath = row.GetData(locationField);
+ if(newPath)
{
- PathCat(fullPath, *newPath);
+ PathCat(fullPath, newPath);
MakePathRelative(fullPath, path, relative);
}
listBox.SetData(locationField, relative);

0 comments on commit 1d76247

Please sign in to comment.