mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[FONTVIEW] Ensure the extension filter is properly double-null terminated
This commit is contained in:
parent
b22484b533
commit
909f50a857
1 changed files with 2 additions and 2 deletions
|
@ -126,10 +126,10 @@ wWinMain(HINSTANCE hThisInstance,
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
OPENFILENAMEW fontOpen;
|
OPENFILENAMEW fontOpen;
|
||||||
WCHAR filter[MAX_PATH*2], dialogTitle[MAX_PATH];
|
WCHAR filter[MAX_PATH*2] = {0}, dialogTitle[MAX_PATH];
|
||||||
|
|
||||||
LoadStringW(NULL, IDS_OPEN, dialogTitle, ARRAYSIZE(dialogTitle));
|
LoadStringW(NULL, IDS_OPEN, dialogTitle, ARRAYSIZE(dialogTitle));
|
||||||
LoadStringW(NULL, IDS_FILTER_LIST, filter, ARRAYSIZE(filter));
|
LoadStringW(NULL, IDS_FILTER_LIST, filter, ARRAYSIZE(filter) - 1);
|
||||||
|
|
||||||
/* Clears out any values of fontOpen before we use it */
|
/* Clears out any values of fontOpen before we use it */
|
||||||
ZeroMemory(&fontOpen, sizeof(fontOpen));
|
ZeroMemory(&fontOpen, sizeof(fontOpen));
|
||||||
|
|
Loading…
Reference in a new issue