From cff4b6d09ce894d11b898028347e0efa5470925c Mon Sep 17 00:00:00 2001 From: "Nix N. Nix" Date: Fri, 28 Jun 2002 23:30:07 +0000 Subject: [PATCH] Removed message box that would pop up if a RunMRU list was not found. --- dlls/shell32/dialogs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c index 2cd3637fc4e..541ccf8ab07 100644 --- a/dlls/shell32/dialogs.c +++ b/dlls/shell32/dialogs.c @@ -234,8 +234,6 @@ BOOL CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) return TRUE ; } } - - /* This should be DefDlgProcA, but that doesn't work */ return FALSE ; } @@ -255,8 +253,8 @@ void FillList (HWND hCb, char *pszLatest) 0, "", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL)) MessageBoxA (hCb, "Unable to open registry key !", "Nix", MB_OK) ; - if (ERROR_SUCCESS != RegQueryValueExA (hkey, "MRUList", NULL, NULL, NULL, &icList)) - MessageBoxA (hCb, "Unable to grab size for MRUList !", "Nix", MB_OK) ; + RegQueryValueExA (hkey, "MRUList", NULL, NULL, NULL, &icList) ; + if (icList > 0) { pszList = malloc (icList) ;