mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:35:40 +00:00
parent
cfdbccf937
commit
3bc93e9353
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue