Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/kernel32/osliblvm.cpp

    r21583 r21916  
    2121#include <win32type.h>
    2222#include <winconst.h>
    23 #include <win\winioctl.h>
     23#include <win/winioctl.h>
    2424#include "osliblvm.h"
    2525
     
    8989    rc = DosQueryProcAddr(hModLVM, 0, "Write_Sectors", (PFN *)&pfnWrite_Sectors);
    9090    if(rc) goto fail;
    91    
     91
    9292    return TRUE;
    9393
     
    267267    Volume_Control_Array *volctrl;
    268268    CARDINAL32            lasterror;
    269    
     269
    270270    if(!hModLVM) {
    271271        dprintf(("LVM dll not loaded -> fail"));
     
    310310//******************************************************************************
    311311//******************************************************************************
    312 BOOL OSLibLVMQueryVolumeName(HANDLE hVolumeControlData, ULONG *pVolIndex, 
     312BOOL OSLibLVMQueryVolumeName(HANDLE hVolumeControlData, ULONG *pVolIndex,
    313313                             LPSTR lpszVolumeName, DWORD cchBufferLength)
    314314{
     
    346346static Volume_Information_Record OSLibLVMFindVolumeByDriveLetter(ULONG driveLetter,
    347347                                                                 Volume_Control_Record *pVolRec,
    348                                                                  CARDINAL32 *lasterror) 
     348                                                                 CARDINAL32 *lasterror)
    349349{
    350350    Volume_Control_Array      *volctrl;
     
    356356        return volinfo;
    357357    }
    358     for(int i=0;i<volctrl->Count;i++) {
     358    int i;
     359    for(i=0;i<volctrl->Count;i++) {
    359360        volinfo = Get_Volume_Information(volctrl->Volume_Control_Data[i].Volume_Handle, lasterror);
    360361        if(*lasterror != LVM_ENGINE_NO_ERROR) {
     
    384385static Volume_Information_Record OSLibLVMFindVolumeByName(LPSTR pszVolName,
    385386                                                          Volume_Control_Record *pVolRec,
    386                                                           CARDINAL32 *lasterror) 
     387                                                          CARDINAL32 *lasterror)
    387388{
    388389    Volume_Control_Array      *volctrl;
     
    394395        return volinfo;
    395396    }
    396     for(int i=0;i<volctrl->Count;i++) {
     397    int i;
     398    for(i=0;i<volctrl->Count;i++) {
    397399        volinfo = Get_Volume_Information(volctrl->Volume_Control_Data[i].Volume_Handle, lasterror);
    398400        if(*lasterror != LVM_ENGINE_NO_ERROR) {
     
    499501        return FALSE;
    500502    }
    501     for(int i=0;i<diskinfo.Count;i++) {
     503    int i;
     504    for(i=0;i<diskinfo.Count;i++) {
    502505        if(diskinfo.Drive_Control_Data[i].Drive_Handle == partctrl.Partition_Array[0].Drive_Handle) {
    503506            //win32 base = 0, os2 base = 1
     
    564567//            - -1 if volume wasn't found
    565568//            - 0 if volume is present, but not mounted
    566 //   
     569//
    567570//******************************************************************************
    568571CHAR OSLibLVMQueryDriveFromVolumeName(LPCSTR lpszVolume)
     
    596599//******************************************************************************
    597600//******************************************************************************
    598 DWORD OSLibLVMQueryVolumeSerialAndName(LPSTR lpszVolume, LPDWORD lpVolumeSerialNumber, 
     601DWORD OSLibLVMQueryVolumeSerialAndName(LPSTR lpszVolume, LPDWORD lpVolumeSerialNumber,
    599602                                       LPSTR lpVolumeNameBuffer, DWORD nVolumeNameSize)
    600603{
     
    621624//******************************************************************************
    622625//******************************************************************************
    623 BOOL OSLibLVMGetVolumeNameForVolumeMountPoint(LPCSTR lpszVolumeMountPoint, 
    624                                               LPSTR lpszVolumeName, 
     626BOOL OSLibLVMGetVolumeNameForVolumeMountPoint(LPCSTR lpszVolumeMountPoint,
     627                                              LPSTR lpszVolumeName,
    625628                                              DWORD cchBufferLength)
    626629{
     
    665668    strncpy(lpszOS2VolumeName, &lpszWin32VolumeName[sizeof(VOLUME_NAME_PREFIX)-1+1], cchBufferLength-1);  //-zero term + starting '{'
    666669    length -= sizeof(VOLUME_NAME_PREFIX)-1+1;
    667     if(lpszOS2VolumeName[length-2] == '}') 
     670    if(lpszOS2VolumeName[length-2] == '}')
    668671    {
    669672        lpszOS2VolumeName[length-2] = 0;
     
    671674    }
    672675    else
    673     if(lpszOS2VolumeName[length-1] == '}') 
     676    if(lpszOS2VolumeName[length-1] == '}')
    674677    {
    675678        lpszOS2VolumeName[length-1] = 0;
Note: See TracChangeset for help on using the changeset viewer.