Ignore:
Timestamp:
Nov 11, 1999, 8:10:09 PM (26 years ago)
Author:
sandervl
Message:

version loading fixes + heap corruption fix

File:
1 edited

Legend:

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

    r1646 r1708  
    1 /* $Id: directory.cpp,v 1.10 1999-11-08 21:24:24 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.11 1999-11-11 19:10:08 sandervl Exp $ */
    22
    33/*
     
    105105
    106106
    107 ODINFUNCTION1(BOOL,SetCurrentDirectoryA,LPCSTR,lpPathName)
     107ODINFUNCTIONNODBG1(BOOL,SetCurrentDirectoryA,LPCSTR,lpPathName)
    108108{
    109109  int len = strlen(lpPathName);
     
    113113  if(tmp[len -1] == '\\')
    114114    tmp[len -1] = 0;
     115
     116  dprintf(("SetCurrentDirectoryA %s", tmp));
    115117  return O32_SetCurrentDirectory((LPSTR)tmp);
    116118}
     
    325327
    326328  rc = GetWindowsDirectoryA(asciibuffer, uSize);
    327   AsciiToUnicode(asciibuffer, lpBuffer);
     329  if(rc)
     330    AsciiToUnicode(asciibuffer, lpBuffer);
    328331  free(asciibuffer);
    329332  return(rc);
Note: See TracChangeset for help on using the changeset viewer.