mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Terminal (Windows): code cleanup
This commit is contained in:
@@ -298,10 +298,11 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
|
||||
{
|
||||
if(!hasGui)
|
||||
{
|
||||
//We are nested shell
|
||||
//We are in nested shell
|
||||
ffStrbufClear(&result->processName);
|
||||
ffStrbufClear(&result->prettyName);
|
||||
ffStrbufClear(&result->exe);
|
||||
ffStrbufClear(&result->exePath);
|
||||
result->exeName = "";
|
||||
pid = ppid;
|
||||
continue;
|
||||
@@ -320,6 +321,7 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
|
||||
ffStrbufClear(&result->processName);
|
||||
ffStrbufClear(&result->prettyName);
|
||||
ffStrbufClear(&result->exe);
|
||||
ffStrbufClear(&result->exePath);
|
||||
result->exeName = "";
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user