mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[REGEDIT] Check whether pszSelectKey is NULL on CDN_FILEOK (#5255)
Avoid crash on exporting root. Add NULL check of pszSelectKey on CDN_FILEOK handling. CORE-18938
This commit is contained in:
parent
560671a784
commit
9d7d3314b3
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ static UINT_PTR CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, W
|
|||
{
|
||||
GetWindowTextW(hwndExportBranchText, pszSelectedKey, _MAX_PATH);
|
||||
}
|
||||
else
|
||||
else if (pszSelectedKey)
|
||||
{
|
||||
pszSelectedKey[0] = L'\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue