win32: fix a glitch that the GetOpenFileName dialog for AVI doesn't appear when the last character of avi output path is '\\'.
This commit is contained in:
parent
e5979f2bc1
commit
ff2de2bc58
|
@ -173,6 +173,8 @@ void SwitchPath(Action action, KnownPath path, char * buffer, int maxCount)
|
||||||
if(action == GET)
|
if(action == GET)
|
||||||
{
|
{
|
||||||
strncpy(buffer, pathToCopy, maxCount);
|
strncpy(buffer, pathToCopy, maxCount);
|
||||||
|
int len = strlen(buffer)-1;
|
||||||
|
if(buffer[len] != '\\')
|
||||||
strcat(buffer, "\\");
|
strcat(buffer, "\\");
|
||||||
}
|
}
|
||||||
else if(action == SET)
|
else if(action == SET)
|
||||||
|
|
Loading…
Reference in New Issue