Skip to content

Commit

Permalink
Fix "Not enough storage..." error
Browse files Browse the repository at this point in the history
This error occurs when launching an application in admin mode for some reason.
The fix was pulled from rprichard/winpty#74
  • Loading branch information
Tyriar committed Oct 24, 2016
1 parent e427816 commit c75c2dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deps/winpty/agent/Agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ class Agent : public EventLoop, public DsrSender
int m_dirtyWindowTop;
int m_dirtyLineCount;

std::wstring m_currentTitle;
// If the title is initialized to the empty string, then cmd.exe will
// sometimes print this error:
// Not enough storage is available to process this command.
// It happens on Windows 7 when logged into a Cygwin SSH session, for
// example. Using a title of a single space character avoids the problem.
// See https://github.com/rprichard/winpty/issues/74.
std::wstring m_currentTitle = L" ";
};

#endif // AGENT_H

0 comments on commit c75c2dc

Please sign in to comment.