Changeset 347 for trunk/dll/codepage.c


Ignore:
Timestamp:
Jul 26, 2006, 7:43:28 AM (19 years ago)
Author:
root
Message:

Use Runtime_Error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/codepage.c

    r2 r347  
     1
     2/***********************************************************************
     3
     4  $Id$
     5
     6  Select code page
     7
     8  Copyright (c) 1993-98 M. Kimes
     9  Copyright (c) 2006 Steven H.Levine
     10
     11  14 Jul 06 SHL Use Runtime_Error
     12
     13***********************************************************************/
     14
    115#define INCL_DOS
    216#define INCL_WIN
    3 
    417#include <os2.h>
     18
    519#include <stdlib.h>
    620#include <stdio.h>
    721#include <string.h>
    822#include <time.h>
     23
    924#include "fm3dll.h"
    1025#include "fm3dlg.h"
     
    1227
    1328#pragma data_seg(DATA1)
     29
     30static PSZ pszSrcFile = __FILE__;
    1431
    1532#pragma alloc_text(FMCODEPAGE,PickCodePageDlgBox,PickCodepage)
     
    151168                                257,
    152169                                s);
    153             if(*s) {
     170            if(!*s)
     171              Runtime_Error(pszSrcFile, __LINE__, "no input");
     172            else {
    154173              for(x = 0;
    155174                  (p = GetPString(IDS_CODEPAGES1 + x)) != NULL;
     
    161180              }
    162181            }
    163             else
    164               DosBeep(50,100);
    165182          }
    166183          break;
Note: See TracChangeset for help on using the changeset viewer.