Changeset 2232 for trunk/src


Ignore:
Timestamp:
Dec 28, 1999, 11:08:57 PM (26 years ago)
Author:
sandervl
Message:

SetCurrentDirectory check + InstallDate registry key fix

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r2044 r2232  
    1 /* $Id: directory.cpp,v 1.13 1999-12-09 11:59:28 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.14 1999-12-28 22:08:56 sandervl Exp $ */
    22
    33/*
     
    118118
    119119
    120 ODINFUNCTIONNODBG1(BOOL,SetCurrentDirectoryA,LPCSTR,lpPathName)
    121 {
     120ODINFUNCTION1(BOOL,SetCurrentDirectoryA,LPCSTR,lpPathName)
     121{
     122  if(HIWORD(lpPathName) == 0) {
     123        SetLastError(ERROR_INVALID_PARAMETER);
     124        return FALSE;
     125  }
    122126  int len = strlen(lpPathName);
    123127  char *tmp=(char *)alloca(len + 1);
  • trunk/src/kernel32/initsystem.cpp

    r2229 r2232  
    1 /* $Id: initsystem.cpp,v 1.2 1999-12-28 19:16:34 sandervl Exp $ */
     1/* $Id: initsystem.cpp,v 1.3 1999-12-28 22:08:57 sandervl Exp $ */
    22/*
    33 * Odin system initialization (registry & directories)
     
    9292   ADVAPI32_RegSetValueExA(hkey,"CurrentVersion",0,REG_SZ, (LPBYTE)digbuf, strlen(digbuf)+1);
    9393
    94    val = GetCurrentTime(); //TODO: Correct format?
     94   val = (DWORD)time(NULL); //todo: Correct format???
    9595   ADVAPI32_RegSetValueExA(hkey,"InstallDate",0,REG_DWORD, (LPBYTE)&val, sizeof(DWORD));
    9696   
Note: See TracChangeset for help on using the changeset viewer.