Ignore:
Timestamp:
Feb 3, 2002, 10:06:40 PM (24 years ago)
Author:
sandervl
Message:

Ported GetTempPathA/W from Wine

File:
1 edited

Legend:

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

    r7722 r7798  
    1 /* $Id: Fileio.cpp,v 1.63 2002-01-02 18:37:51 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.64 2002-02-03 21:06:40 sandervl Exp $ */
    22
    33/*
     
    725725  FreeAsciiString(asciipath);
    726726  free(asciitemp);
    727   return(rc);
    728 }
    729 //******************************************************************************
    730 //******************************************************************************
    731 ODINFUNCTION2(UINT, GetTempPathA,
    732               UINT, arg1,
    733               LPSTR, arg2)
    734 {
    735   return O32_GetTempPath(arg1, arg2);
    736 }
    737 //******************************************************************************
    738 //******************************************************************************
    739 ODINFUNCTION2(UINT, GetTempPathW,
    740               UINT, nBufferLength,
    741               LPWSTR, lpBuffer)
    742 {
    743   char *asciibuffer = (char *)malloc(nBufferLength+1);
    744   DWORD rc;
    745 
    746   rc = O32_GetTempPath(nBufferLength, asciibuffer);
    747   if(rc)      AsciiToUnicode(asciibuffer, lpBuffer);
    748   free(asciibuffer);
    749727  return(rc);
    750728}
Note: See TracChangeset for help on using the changeset viewer.