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,7 +173,9 @@ void SwitchPath(Action action, KnownPath path, char * buffer, int maxCount)
|
|||
if(action == GET)
|
||||
{
|
||||
strncpy(buffer, pathToCopy, maxCount);
|
||||
strcat(buffer, "\\");
|
||||
int len = strlen(buffer)-1;
|
||||
if(buffer[len] != '\\')
|
||||
strcat(buffer, "\\");
|
||||
}
|
||||
else if(action == SET)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue