Changeset 59 for trunk/gotcha.cpp


Ignore:
Timestamp:
Mar 21, 2019, 10:56:47 PM (6 years ago)
Author:
Gregg Young
Message:

Fix #ifdef for the command line switches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gotcha.cpp

    r57 r59  
    5353    for (USHORT i = 1; i < argc; i++)
    5454    {
     55#ifndef _QUIET_
    5556        // batch mode
    5657        if ((stricmp (argv[i], "-a") == 0))
     
    8586            pset->SetFlag (SEI_IDLEPRIORITY, TRUE);
    8687        }
    87 #ifdef _QUIET_
     88#else
    8889        // use default PM print screen
    8990        else if (stricmp (argv[i], "-p") == 0)
     
    308309  }
    309310
    310   memset(mb2dBut, 0, sizeof(MB2D) * 3);
     311  memset(mb2dBut, 0, sizeof(MB2D) * 2);
    311312  strcpy(mb2dBut[0].achText,RSTR(IDS_OK));
    312313  strcpy(mb2dBut[1].achText,RSTR(IDS_CANCEL));
    313   strcpy(mb2dBut[2].achText,RSTR(IDS_SETTINGS));
     314  //strcpy(mb2dBut[2].achText,RSTR(IDS_SETTINGS));
    314315  mb2dBut[0].idButton = 1;
    315316  mb2dBut[1].idButton = 2;
    316   mb2dBut[2].idButton = 3;
     317  //mb2dBut[2].idButton = 3;
    317318  if (DefaultButton)
    318319    mb2dBut[DefaultButton - 1].flStyle = BS_DEFAULT;
     
    322323    pmbInfo->cb         = ulInfoSize;
    323324    pmbInfo->hIcon      = 0;
    324     pmbInfo->cButtons   = 3;
     325    pmbInfo->cButtons   = 2;
    325326    pmbInfo->flStyle    = MB_MOVEABLE | MB_ICONQUESTION ;
    326327    pmbInfo->hwndNotify = NULLHANDLE;
    327     for (i = 0; i < 3; i++) {
     328    for (i = 0; i < 2; i++) {
    328329      memcpy( pmbInfo->mb2d+i , mb2dBut+i , sizeof(MB2D));
    329330    }
Note: See TracChangeset for help on using the changeset viewer.