Changeset 9815 for trunk/src


Ignore:
Timestamp:
Feb 17, 2003, 12:31:43 PM (23 years ago)
Author:
sandervl
Message:

FindFirstFile: return ERROR_FILE_NOT_FOUND if DosFindFirst returns ERROR_PATH_NOT_FOUND

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r9095 r9815  
    1 /* $Id: Fileio.cpp,v 1.68 2002-08-22 14:21:26 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.69 2003-02-17 11:31:42 sandervl Exp $ */
    22
    33/*
     
    662662//******************************************************************************
    663663//******************************************************************************
    664 UINT WIN32API GetTempFileNameA(LPCSTR arg1, LPCSTR arg2, UINT arg3, LPSTR arg4)
    665 {
    666   return O32_GetTempFileName(arg1, arg2, arg3, arg4);
     664UINT WIN32API GetTempFileNameA(LPCSTR lpPathName, LPCSTR lpPrefixString,
     665                               UINT uUnique, LPSTR lpTempFileName)
     666{
     667    dprintf(("GetTempFileNameA %s %s", lpPathName, lpPrefixString));
     668    return O32_GetTempFileName(lpPathName, lpPrefixString, uUnique, lpTempFileName);
    667669}
    668670//******************************************************************************
     
    677679  asciipath   = UnicodeToAsciiString((LPWSTR)lpPathName);
    678680  asciiprefix = UnicodeToAsciiString((LPWSTR)lpPrefixString);
    679   rc = O32_GetTempFileName(asciipath, asciiprefix, uUnique, asciitemp);
     681  rc = GetTempFileNameA(asciipath, asciiprefix, uUnique, asciitemp);
    680682  if(rc)      AsciiToUnicode(asciitemp, lpTempFileName);
    681683  FreeAsciiString(asciiprefix);
     
    893895                        asciibuffer, &asciipart);
    894896
    895   dprintf(("KERNEL32: GetFullPathNameW %s returns %s\n",
     897  dprintf(("KERNEL32: GetFullPathNameW %s returns %s\n%s",
    896898           astring,
    897            asciibuffer));
     899           asciibuffer, asciipart));
    898900
    899901  if(rc && asciibuffer)
  • trunk/src/kernel32/oslibdos.cpp

    r9693 r9815  
    1 /* $Id: oslibdos.cpp,v 1.114 2003-01-20 10:46:27 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.115 2003-02-17 11:31:43 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    22192219   
    22202220    //Windows returns ERROR_FILE_NOT_FOUND if the file/directory is not present
    2221     if(rc == ERROR_NO_MORE_FILES) {
     2221    if(rc == ERROR_NO_MORE_FILES || rc == ERROR_PATH_NOT_FOUND) {
    22222222         SetLastError(ERROR_FILE_NOT_FOUND_W);
    22232223    }
     
    23402340   char       *lpszBackslash, *lpszColon;
    23412341   APIRET      rc;
     2342
     2343//testestest
     2344   if(strlen(lpFileName) > CCHMAXPATH) DebugInt3();
     2345//testestset
    23422346
    23432347   //Convert file name from Windows to OS/2 codepage
Note: See TracChangeset for help on using the changeset viewer.