Subversion Repositories DevTools

Rev

Rev 2764 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2764 Rev 4814
Line 44... Line 44...
44
**   Compiler       : ANSI C
44
**   Compiler       : ANSI C
45
**   Target         : Windows 2000+, Linux, Solaris8+
45
**   Target         : Windows 2000+, Linux, Solaris8+
46
**
46
**
47
***==========================================================================*/
47
***==========================================================================*/
48
 
48
 
-
 
49
#define _CRT_SECURE_NO_WARNINGS
-
 
50
 
49
#include <tchar.h>
51
#include <tchar.h>
50
#include <stdio.h>
52
#include <stdio.h>
51
#include <windows.h>
53
#include <windows.h>
52
 
54
 
53
#define INVALID_FILE_ATTIBUTES ((DWORD) -1)
55
#define INVALID_FILE_ATTIBUTES ((DWORD) -1)
Line 779... Line 781...
779
**
781
**
780
----------------------------------------------------------------------------*/
782
----------------------------------------------------------------------------*/
781
 
783
 
782
_TCHAR * makePath ( _TCHAR * base, _TCHAR *file )
784
_TCHAR * makePath ( _TCHAR * base, _TCHAR *file )
783
{
785
{
784
    int lenp = 0;
786
    size_t lenp = 0;
785
    int lencwd = 0;
787
    size_t lencwd = 0;
786
    int len1 = _tcslen(base);
788
    size_t len1 = _tcslen(base);
787
    int len2 = 0;
789
    size_t len2 = 0;
788
    int dlen = _tcslen(TEXT("\\\\?\\"));
790
    size_t dlen = _tcslen(TEXT("\\\\?\\"));
789
    _TCHAR *data;
791
    _TCHAR *data;
790
    _TCHAR *cdata;
792
    _TCHAR *cdata;
791
    _TCHAR *udst;
793
    _TCHAR *udst;
792
 
794
 
793
    /*
795
    /*
Line 831... Line 833...
831
        cdata += lenp;
833
        cdata += lenp;
832
    }
834
    }
833
 
835
 
834
    if ( lencwd )
836
    if ( lencwd )
835
    {
837
    {
836
        GetCurrentDirectory(lencwd+1, cdata);
838
        GetCurrentDirectory((DWORD)(lencwd+1), cdata);
837
        cdata += lencwd;
839
        cdata += lencwd;
838
        _tcscpy( cdata, TEXT("\\"));
840
        _tcscpy( cdata, TEXT("\\"));
839
        cdata += 1;
841
        cdata += 1;
840
    }
842
    }
841
 
843