Changeset 551 for trunk/undel.c


Ignore:
Timestamp:
Feb 28, 2007, 2:33:51 AM (19 years ago)
Author:
Gregg Young
Message:

Indentation cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/undel.c

    r2 r551  
    1111#include "dll\fm3dlg.h"
    1212
     13int main(int argc, char *argv[])
     14{
    1315
    14 int main (int argc,char *argv[]) {
    15 
    16   HAB         hab;
    17   HMQ         hmq;
     16  HAB hab;
     17  HMQ hmq;
    1818  FILESTATUS3 fs;
    1919  static CHAR fullname[CCHMAXPATH];
    20   CHAR       *thisarg = NULL;
    21   INT         x;
     20  CHAR *thisarg = NULL;
     21  INT x;
    2222
    2323  DosError(FERR_DISABLEHARDERR);
    24   for(x = 1;x < argc;x++) {
    25     if(!strchr("/;,`\'",*argv[x]) && !thisarg) {
     24  for (x = 1; x < argc; x++) {
     25    if (!strchr("/;,`\'", *argv[x]) && !thisarg) {
    2626      thisarg = argv[x];
    2727      break;
    2828    }
    2929  }
    30   if(!thisarg) {
     30  if (!thisarg) {
    3131    thisarg = fullname;
    3232    save_dir(fullname);
    3333  }
    3434  DosError(FERR_DISABLEHARDERR);
    35   if(thisarg &&
    36      !DosQueryPathInfo(thisarg,
    37                        FIL_STANDARD,
    38                        &fs,
    39                        sizeof(fs))) {
    40     if(DosQueryPathInfo(thisarg,
    41                         FIL_QUERYFULLNAME,
    42                         fullname,
    43                         sizeof(fullname)))
    44       strcpy(fullname,thisarg);
     35  if (thisarg && !DosQueryPathInfo(thisarg, FIL_STANDARD, &fs, sizeof(fs))) {
     36    if (DosQueryPathInfo(thisarg,
     37                         FIL_QUERYFULLNAME, fullname, sizeof(fullname)))
     38      strcpy(fullname, thisarg);
    4539    hab = WinInitialize(0);
    46     if(hab) {
    47       hmq = WinCreateMsgQueue(hab,256);
    48       if(hmq) {
    49         if(InitFM3DLL(hab,argc,argv)) {
    50           MakeValidDir(fullname);
    51           WinDlgBox(HWND_DESKTOP,
    52                     HWND_DESKTOP,
    53                     UndeleteDlgProc,
    54                     FM3ModHandle,
    55                     UNDEL_FRAME,
    56                     (PVOID)fullname);
    57         }
    58         DosSleep(250L);
    59         WinDestroyMsgQueue(hmq);
     40    if (hab) {
     41      hmq = WinCreateMsgQueue(hab, 256);
     42      if (hmq) {
     43        if (InitFM3DLL(hab, argc, argv)) {
     44          MakeValidDir(fullname);
     45          WinDlgBox(HWND_DESKTOP,
     46                    HWND_DESKTOP,
     47                    UndeleteDlgProc,
     48                    FM3ModHandle, UNDEL_FRAME, (PVOID) fullname);
     49        }
     50        DosSleep(250L);
     51        WinDestroyMsgQueue(hmq);
    6052      }
    6153      WinTerminate(hab);
     
    6355  }
    6456  else
    65     DosBeep(250,100);
     57    DosBeep(250, 100);
    6658  return 0;
    6759}
    68 
Note: See TracChangeset for help on using the changeset viewer.