Index: file.c
===================================================================
RCS file: /cvsroot/ethereal/file.c,v
retrieving revision 1.361
diff -u -r1.361 file.c
--- file.c	11 Feb 2004 02:02:38 -0000	1.361
+++ file.c	20 Feb 2004 15:14:30 -0000
@@ -141,7 +141,6 @@
 	gint		format;		/* text or PostScript */
 } print_data;
 
-
 int
 cf_open(char *fname, gboolean is_tempfile, capture_file *cf)
 {
@@ -2262,12 +2261,20 @@
         /* Go on to the previous frame. */
         fdata = fdata->prev;
         if (fdata == NULL)
-          fdata = cf->plist_end;	/* wrap around */
+        {
+            simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTN_OK,
+                        "We have reached the beginning of the file\n\n Click Ok to continue the search from the end of the file.");
+            fdata = cf->plist_end;	/* wrap around */
+        }
       } else {
         /* Go on to the next frame. */
         fdata = fdata->next;
         if (fdata == NULL)
-          fdata = cf->plist;	/* wrap around */
+        {
+            simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTN_OK,
+                        "We have reached the end of the file\n\n Click Ok to continue the search from the beginning of the file.");
+            fdata = cf->plist;	/* wrap around */
+        }
       }
 
       count++;
