Changeset 1398 for trunk/dll/printer.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (16 years ago)
Author:
Gregg Young
Message:

Move embeded strings to PCSZ variables or string table; Eliminate Error2 functions Runtime_Error with NULL format string returns "No data" error. Change declares from PSZ to PCSZ in functions where the variable isn't changed. Added btm as an executable file type in several additional places. Use fProtectOnly to prevent attempt to execute Dos and Win programs on "Protect only" installs in several additional places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/printer.c

    r1395 r1398  
    3131#include "notebook.h"                   // Data declaration(s)
    3232#include "mainwnd.h"                    // Data declaration(s)
     33#include "init.h"                       // Data declaration(s)
    3334#include "fm3dlg.h"
    3435#include "fm3str.h"
     
    142143    if (DosCreateMutexSem(NULL, &PrintSem, 0, FALSE)) {
    143144      Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    144                 "DosCreateMutexSem");
     145                PCSZ_DOSCREATEMUTEXSEM);
    145146      goto Abort;
    146147    }
     
    425426    li = WinQueryWindowPtr(hwnd, QWL_USER);
    426427    if (!li)
    427       Runtime_Error(pszSrcFile, __LINE__, "no data");
     428      Runtime_Error(pszSrcFile, __LINE__, NULL);
    428429    else {
    429430      INT x;
     
    473474      li = WinQueryWindowPtr(hwnd, QWL_USER);
    474475      if (!li)
    475         Runtime_Error(pszSrcFile, __LINE__, "no data");
     476        Runtime_Error(pszSrcFile, __LINE__, NULL);
    476477      else {
    477478        prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT);
Note: See TracChangeset for help on using the changeset viewer.