diff --git a/src/HexEdit/DlgHighlight.c b/src/HexEdit/DlgHighlight.c index 0da3df7..f10bb05 100644 --- a/src/HexEdit/DlgHighlight.c +++ b/src/HexEdit/DlgHighlight.c @@ -461,7 +461,8 @@ BOOL SaveHighlights(HWND hwndHexView) HBOOKMARK hbm; HCONFIG config, filedata, bookmarks; - GetBookmarkFileName(hwndHexView, NULL, szBookPath); + if (!GetBookmarkFileName(hwndHexView, NULL, szBookPath)) + return FALSE; config = CreateConfig(); filedata = CreateConfigSection(config, TEXT("hexFileData"));