mirror of
https://github.com/reactos/reactos.git
synced 2024-11-25 12:33:34 +08:00
parent
cfdbccf937
commit
3bc93e9353
@ -18,6 +18,8 @@
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <stdlib.h>
|
||||
#include <strsafe.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
@ -233,12 +235,12 @@ DoSaveFileAs(
|
||||
|
||||
if (pChildInfo->pFileName != NULL)
|
||||
{
|
||||
_tcscpy(szPath, pChildInfo->pFileName);
|
||||
StringCbCopy(szPath, sizeof(szPath), pChildInfo->pFileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetWindowText(pChildInfo->hwnd, szPath, MAX_PATH);
|
||||
_tcscat(szPath, TEXT(".msc"));
|
||||
GetWindowText(pChildInfo->hwnd, szPath, _countof(szPath));
|
||||
StringCbCat(szPath, sizeof(szPath), TEXT(".msc"));
|
||||
}
|
||||
|
||||
saveas.lStructSize = sizeof(OPENFILENAME);
|
||||
|
Loading…
Reference in New Issue
Block a user