mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[VGAFONTEDIT] Fix exception on New
Based on KRosUser's vgafont.patch. CORE-19192
This commit is contained in:
parent
e579220098
commit
df54fb01fd
1 changed files with 7 additions and 2 deletions
|
@ -374,12 +374,17 @@ CreateFontWindow(IN PMAIN_WND_INFO MainWndInfo, IN PFONT_OPEN_INFO OpenInfo)
|
|||
|
||||
if( InitFont(Info) )
|
||||
{
|
||||
PWSTR pszWindowTitle;
|
||||
PWSTR pch, pszWindowTitle;
|
||||
|
||||
if(OpenInfo->pszFileName)
|
||||
pszWindowTitle = wcsrchr(OpenInfo->pszFileName, '\\') + 1;
|
||||
{
|
||||
pch = wcsrchr(OpenInfo->pszFileName, '\\');
|
||||
pszWindowTitle = (pch ? (pch + 1) : OpenInfo->pszFileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadAndFormatString(IDS_DOCNAME, &pszWindowTitle, ++MainWndInfo->uDocumentCounter);
|
||||
}
|
||||
|
||||
hFontWnd = CreateMDIWindowW( szFontWndClass,
|
||||
pszWindowTitle,
|
||||
|
|
Loading…
Reference in a new issue