mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
[NOTEPAD] Fix CIDs 510916 and 716307. By Ricardo Hanke. CORE-9300
svn path=/trunk/; revision=66529
This commit is contained in:
parent
ebdb755ed6
commit
2e3c340382
2 changed files with 8 additions and 1 deletions
|
@ -983,6 +983,11 @@ VOID DoCreateEditWindow(VOID)
|
|||
|
||||
if (Globals.hEdit == NULL)
|
||||
{
|
||||
if (pTemp)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
}
|
||||
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "notepad.h"
|
||||
|
||||
#include <strsafe.h>
|
||||
|
||||
NOTEPAD_GLOBALS Globals;
|
||||
static ATOM aFINDMSGSTRING;
|
||||
|
||||
|
@ -43,7 +45,7 @@ VOID NOTEPAD_EnableSearchMenu()
|
|||
*/
|
||||
VOID SetFileName(LPCTSTR szFileName)
|
||||
{
|
||||
_tcscpy(Globals.szFileName, szFileName);
|
||||
StringCchCopy(Globals.szFileName, SIZEOF(Globals.szFileName), szFileName);
|
||||
Globals.szFileTitle[0] = 0;
|
||||
GetFileTitle(szFileName, Globals.szFileTitle, SIZEOF(Globals.szFileTitle));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue