Ignore:
Timestamp:
Feb 24, 2003, 12:40:45 PM (22 years ago)
Author:
sandervl
Message:

GetFullPathNameA: don't change the input string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/Fileio.cpp

    r9815 r9846  
    1 /* $Id: Fileio.cpp,v 1.69 2003-02-17 11:31:42 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.70 2003-02-24 11:40:45 sandervl Exp $ */
    22
    33/*
     
    868868//******************************************************************************
    869869//******************************************************************************
    870 DWORD WIN32API GetFullPathNameA(LPCSTR arg1, DWORD arg2, LPSTR  arg3,
    871                                 LPSTR * arg4)
    872 {
    873     char *ptr;
     870DWORD WIN32API GetFullPathNameA(LPCSTR lpFileName, DWORD nBufferLength, LPSTR lpBuffer,
     871                                LPSTR *lpFilePart)
     872{
     873    char *ptr, *lpszFileName;
    874874    DWORD rc;
    875     dprintf(("KERNEL32:  GetFullPathName called with %s %d %x", arg1, arg2, arg3));
    876     while((ptr = strchr(arg1, '/')) != NULL)
     875
     876    dprintf(("KERNEL32:  GetFullPathName called with %s %d %x", lpFileName, nBufferLength, lpBuffer));
     877
     878    lpszFileName = strdup(lpFileName);
     879
     880    while((ptr = strchr(lpszFileName, '/')) != NULL)
    877881        *ptr = '\\';
    878882
    879     return O32_GetFullPathName(arg1, arg2, arg3, arg4);
     883    rc = O32_GetFullPathName(lpszFileName, nBufferLength, lpBuffer, lpFilePart);
     884
     885    free(lpszFileName);
     886
     887    return rc;
    880888}
    881889//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.