We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e04a2a commit 074b07cCopy full SHA for 074b07c
2 files changed
Common.String.ixx
@@ -141,10 +141,17 @@ void TrimSpaces(_Inout_ std::u16string& text)
141
142
void UnquoteString(_Inout_ std::u16string& path)
143
{
144
+ if (path.empty())
145
+ return;
146
+
147
if (path.back() == '\"')
148
149
path.pop_back();
150
}
151
152
153
154
155
if (path.front() == '\"')
156
157
path.erase(0, 1);
MainWindow.ixx
@@ -116,6 +116,7 @@ int APIENTRY wWinMain(
116
else if (_wcsicmp(ToWChar(trimmedCommandLine.c_str()), L"/blank") == 0)
117
118
wantBlankCanvas = true;
119
+ trimmedCommandLine.clear();
120
121
else if (trimmedCommandLine[0] == '/')
122
0 commit comments