Changeset 374 for trunk/dll


Ignore:
Timestamp:
Jul 27, 2006, 4:42:10 AM (19 years ago)
Author:
root
Message:

Report open errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/sysinfo.c

    r332 r374  
    1212  08 Feb 03 SHL Enable display
    1313  01 Aug 04 SHL RunRmview: avoid buffer overflow
    14   22 Jul 06 SHL Comments
     14  26 Jul 06 SHL Report open errors
    1515
    1616***********************************************************************/
     
    4949      goto Abort;
    5050    unlinkf("%s","$RMVIEW.#$#");
    51     fp = fopen("$RMVIEW.#$#","w");
    52     if(fp) {
     51    fp = xfopen("$RMVIEW.#$#","w");
     52    if (!fp)
     53      goto Abort;
     54    else {
    5355      newstdout = -1;
    5456      if(DosDupHandle(fileno(stdout),&newstdout)) {
     
    6567      fclose(fp);
    6668    }
    67     else
     69    if (!WinIsWindow(thab,hwnd))
    6870      goto Abort;
    69     if(!WinIsWindow(thab,hwnd))
    70       goto Abort;
    71     fp = fopen("$RMVIEW.#$#","r");
    72     if(fp) {
     71    fp = xfopen("$RMVIEW.#$#","r");
     72    if (fp) {
    7373      fgets(s,2048,fp);
    7474      fgets(s,2048,fp);
Note: See TracChangeset for help on using the changeset viewer.