Changeset 347 for trunk/dll/defview.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/defview.c

    r92 r347  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2003 Steven H.Levine
    8 
    9   Archive containers
    10 
    11   Revisions     20 Nov 03 SHL - ShowMultimedia: try to convince fmplay to not play exes (Gregg Young)
     7  Copyright (c) 2003, 2006 Steven H.Levine
     8
     9  Default file viewer
     10
     11  20 Nov 03 SHL ShowMultimedia: try to convince fmplay to not play exes (Gregg Young)
     12  14 Jul 06 SHL Use Runtime_Error
    1213
    1314***********************************************************************/
     
    1718#define INCL_GPI
    1819#define INCL_MMIOOS2
    19 
    2020#include <os2.h>
    2121#include <os2me.h>
     22
    2223#include <stdio.h>
    2324#include <stdlib.h>
    2425#include <string.h>
    2526#include <ctype.h>
     27
    2628#include "fm3dll.h"
    2729#include "fm3dlg.h"
     30
     31static PSZ pszSrcFile = __FILE__;
    2832
    2933#pragma alloc_text(DEFVIEW,DefaultView,ShowMultimedia,DefaultViewKeys)
     
    113117
    114118VOID DefaultViewKeys (HWND hwnd,HWND hwndFrame,HWND hwndParent,
    115                       SWP *swp,CHAR *filename) {
    116 
     119                      SWP *swp,CHAR *filename)
     120{
    117121  if((shiftstate & (KC_CTRL | KC_SHIFT)) ==
    118122     (KC_CTRL | KC_SHIFT))
     
    148152
    149153VOID DefaultView (HWND hwnd,HWND hwndFrame,HWND hwndParent,SWP *swp,
    150                   ULONG flags,CHAR *filename) {
    151 
     154                  ULONG flags,CHAR *filename)
     155{
    152156  /*
    153157   * bitmapped flags:
     
    170174    flags &= (~16);
    171175    if(!IsFile(filename)) {
    172       DosBeep(50,100);
     176      Runtime_Error(pszSrcFile, __LINE__, "%s not found", filename);
    173177      return;
    174178    }
Note: See TracChangeset for help on using the changeset viewer.