Ignore:
Timestamp:
Oct 19, 2011, 11:26:02 AM (14 years ago)
Author:
dmik
Message:

Replace "\" with "/" in include statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/directory.cpp

    r21302 r21720  
    66 * Copyright 1998 Sander van Leeuwen
    77 *
    8  * NOTE: Directory creation has to be done in install program (odin\win) 
     8 * NOTE: Directory creation has to be done in install program (odin\win)
    99 *
    1010 * Parts based on Wine code (991031) (files\directory.c)
     
    1414 * Copyright 1995 Alexandre Julliard
    1515 *
    16  * TODO: 
     16 * TODO:
    1717 *  - System/window directories should be created by install program!
    1818 *
     
    3434#include <options.h>
    3535#include "initterm.h"
    36 #include <win\file.h>
     36#include <win/file.h>
    3737#include <string.h>
    3838#include "oslibdos.h"
     
    8080   len = strlen(DIR_System);
    8181   if(DIR_System[len-1] == '\\') {
    82         DIR_System[len-1] = 0; 
     82        DIR_System[len-1] = 0;
    8383   }
    8484   len = PROFILE_GetOdinIniString(ODINDIRECTORIES,"WINDOWS","",DIR_Windows,sizeof(DIR_Windows));
    8585   if (len > 2) {
    8686        if(DIR_Windows[len-1] == '\\') {
    87                 DIR_Windows[len-1] = 0; 
     87                DIR_Windows[len-1] = 0;
    8888        }
    8989   }
     
    116116   len = strlen(DIR_System);
    117117   if(DIR_System[len-1] == '\\') {
    118         DIR_System[len-1] = 0; 
     118        DIR_System[len-1] = 0;
    119119   }
    120120   strcpy(DIR_Windows, szWindowsDir);
    121121   len = strlen(DIR_Windows);
    122122   if(DIR_Windows[len-1] == '\\') {
    123         DIR_Windows[len-1] = 0; 
     123        DIR_Windows[len-1] = 0;
    124124   }
    125125
     
    146146  rc = OSLibDosQueryDir(nBufferLength, lpBuffer);
    147147  if(rc && rc < nBufferLength) {
    148        dprintf(("CurrentDirectory = %s (%d)", lpBuffer, rc)); 
    149   }
    150   else dprintf(("CurrentDirectory returned %d", rc)); 
     148       dprintf(("CurrentDirectory = %s (%d)", lpBuffer, rc));
     149  }
     150  else dprintf(("CurrentDirectory returned %d", rc));
    151151  return rc;
    152152}
     
    196196    return FALSE;
    197197  }
    198  
     198
    199199  // cut off trailing backslashes
    200200  // not if a process wants to change to the root directory
     
    264264
    265265  int len = strlen(lpstrDirectory);
    266  
     266
    267267  // cut off trailing backslashes
    268268  if ( (lpstrDirectory[len - 1] == '\\') ||
     
    275275    lpstrDirectory = lpTemp;
    276276  }
    277  
     277
    278278  dprintf(("CreateDirectoryA %s", lpstrDirectory));
    279  
     279
    280280  // Creation of an existing directory will fail (verified in NT4 & XP)
    281281  DWORD dwAttr = GetFileAttributesA(lpstrDirectory);
    282   if(dwAttr != -1) 
     282  if(dwAttr != -1)
    283283  {
    284284      if (dwAttr & FILE_ATTRIBUTE_DIRECTORY)
     
    287287          return FALSE;
    288288      }
    289   } 
     289  }
    290290  return(OSLibDosCreateDirectory(lpstrDirectory));
    291291}
     
    437437    asciibuffer = (char *)alloca(uSize+1);
    438438
    439   if(lpBuffer && asciibuffer == NULL) 
     439  if(lpBuffer && asciibuffer == NULL)
    440440  {
    441441    DebugInt3();
     
    445445  if(rc && asciibuffer)
    446446    AsciiToUnicode(asciibuffer, lpBuffer);
    447  
     447
    448448  return(rc);
    449449}
     
    495495    asciibuffer = (char *)alloca(uSize+1);
    496496
    497   if(lpBuffer && asciibuffer == NULL) 
     497  if(lpBuffer && asciibuffer == NULL)
    498498  {
    499499    DebugInt3();
     
    503503  if(rc && asciibuffer)
    504504    AsciiToUnicode(asciibuffer, lpBuffer);
    505  
     505
    506506  return(rc);
    507507}
     
    524524{
    525525  int len = strlen(lpstrDirectory);
    526  
     526
    527527  if(lpstrDirectory == NULL) {
    528528     SetLastError(ERROR_INVALID_PARAMETER);
     
    539539    lpstrDirectory = lpTemp;
    540540  }
    541  
     541
    542542  dprintf(("RemoveDirectory %s", lpstrDirectory));
    543543
     
    619619       those (according to SDK docs) */
    620620    if ((path != NULL) && strchr(path, ';')) {
    621         ret = OSLibDosSearchPath(OSLIB_SEARCHDIR, (LPSTR)path, (LPSTR)name, 
     621        ret = OSLibDosSearchPath(OSLIB_SEARCHDIR, (LPSTR)path, (LPSTR)name,
    622622                                 full_name, MAX_PATHNAME_LEN);
    623623        goto done;
     
    647647        name = tmp;
    648648    }
    649    
     649
    650650    /* If we have an explicit path, everything's easy */
    651651
     
    704704 *             filename is returned.
    705705 *    Failure: Zero
    706  * 
     706 *
    707707 * NOTES
    708708 *    Should call SetLastError(but currently doesn't).
     
    732732    LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, name );
    733733    LPSTR extA  = HEAP_strdupWtoA( GetProcessHeap(), 0, ext );
    734  
     734
    735735    dprintf(("SearchPathA %s %s %s", pathA, nameA, extA));
    736736    DWORD ret = DIR_SearchPath( pathA, nameA, extA, (LPSTR)full_name );
    737  
     737
    738738    if (NULL != extA)
    739739      HeapFree( GetProcessHeap(), 0, extA );
    740  
     740
    741741    if (NULL != nameA)
    742742      HeapFree( GetProcessHeap(), 0, nameA );
    743  
     743
    744744    if (NULL != pathA)
    745745      HeapFree( GetProcessHeap(), 0, pathA );
    746  
     746
    747747    if (!ret) return 0;
    748748
Note: See TracChangeset for help on using the changeset viewer.