Commit ff8d54c2 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Extra check if Process_getAffinity fails.

I could not reproduce the crash in current SVN 
(I've been adding checks for problems like this),
but the sanity check looks correct.
Thanks to Cybjit. Closes #3481053.
parent 8b73d11a
...@@ -772,6 +772,7 @@ int main(int argc, char** argv) { ...@@ -772,6 +772,7 @@ int main(int argc, char** argv) {
break; break;
Affinity* affinity = Process_getAffinity((Process*) Panel_getSelected(panel)); Affinity* affinity = Process_getAffinity((Process*) Panel_getSelected(panel));
if (!affinity) break;
Panel* affinityPanel = AffinityPanel_new(pl, affinity); Panel* affinityPanel = AffinityPanel_new(pl, affinity);
Affinity_delete(affinity); Affinity_delete(affinity);
......
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