Ignore:
Timestamp:
Mar 4, 2000, 8:52:37 PM (25 years ago)
Author:
sandervl
Message:

DosOpen (file handle error) & dll destruction bugfixes

File:
1 edited

Legend:

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

    r2984 r3005  
    1 /* $Id: initsystem.cpp,v 1.6 2000-03-03 11:15:57 sandervl Exp $ */
     1/* $Id: initsystem.cpp,v 1.7 2000-03-04 19:52:36 sandervl Exp $ */
    22/*
    33 * Odin system initialization (registry & directories)
     
    113113//   if(RegOpenKeyA(HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", &hkey) != ERROR_SUCCESS)
    114114//   {
    115         strcpy(shellpath, InternalGetSystemDirectoryA());
    116         strcat(shellpath, "\\WIN\\Favorites");
     115        strcpy(shellpath, InternalGetWindowsDirectoryA());
     116        strcat(shellpath, "\\Favorites");
    117117        CreateDirectoryA(shellpath, NULL);
    118118        RegSetValueExA(hkey,"Favorites",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    119         strcpy(shellpath, InternalGetSystemDirectoryA());
    120         strcat(shellpath, "\\WIN\\Programs\\Startup");
     119        strcpy(shellpath, InternalGetWindowsDirectoryA());
     120        strcat(shellpath, "\\Programs\\Startup");
    121121        CreateDirectoryA(shellpath, NULL);
    122122        RegSetValueExA(hkey,"Startup",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    123         strcpy(shellpath, InternalGetSystemDirectoryA());
    124         strcat(shellpath, "\\WIN\\Desktop");
     123        strcpy(shellpath, InternalGetWindowsDirectoryA());
     124        strcat(shellpath, "\\Desktop");
    125125        CreateDirectoryA(shellpath, NULL);
    126126        RegSetValueExA(hkey,"Desktop",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    127         strcpy(shellpath, InternalGetSystemDirectoryA());
    128         strcat(shellpath, "\\WIN\\Start Menu\\Programs");
     127        strcpy(shellpath, InternalGetWindowsDirectoryA());
     128        strcat(shellpath, "\\Start Menu\\Programs");
    129129        CreateDirectoryA(shellpath, NULL);
    130130        RegSetValueExA(hkey,"Programs",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    131         strcpy(shellpath, InternalGetSystemDirectoryA());
    132         strcat(shellpath, "\\WIN\\Fonts");
     131        strcpy(shellpath, InternalGetWindowsDirectoryA());
     132        strcat(shellpath, "\\Fonts");
    133133        CreateDirectoryA(shellpath, NULL);
    134134        RegSetValueExA(hkey,"Fonts",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    135         strcpy(shellpath, InternalGetSystemDirectoryA());
    136         strcat(shellpath, "\\WIN\\SendTo");
     135        strcpy(shellpath, InternalGetWindowsDirectoryA());
     136        strcat(shellpath, "\\SendTo");
    137137        CreateDirectoryA(shellpath, NULL);
    138138        RegSetValueExA(hkey,"SendTo",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    139         strcpy(shellpath, InternalGetSystemDirectoryA());
    140         strcat(shellpath, "\\WIN\\Start Menu");
     139        strcpy(shellpath, InternalGetWindowsDirectoryA());
     140        strcat(shellpath, "\\Start Menu");
    141141        CreateDirectoryA(shellpath, NULL);
    142142        RegSetValueExA(hkey,"Start Menu",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    143         strcpy(shellpath, InternalGetSystemDirectoryA());
    144         strcat(shellpath, "\\WIN\\ShellNew");
     143        strcpy(shellpath, InternalGetWindowsDirectoryA());
     144        strcat(shellpath, "\\ShellNew");
    145145        CreateDirectoryA(shellpath, NULL);
    146146        RegSetValueExA(hkey,"Templates",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    147         strcpy(shellpath, InternalGetSystemDirectoryA());
    148         strcat(shellpath, "\\WIN\\Recent");
     147        strcpy(shellpath, InternalGetWindowsDirectoryA());
     148        strcat(shellpath, "\\Recent");
    149149        CreateDirectoryA(shellpath, NULL);
    150150        RegSetValueExA(hkey,"Recent",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    151         strcpy(shellpath, InternalGetSystemDirectoryA());
    152         strcat(shellpath, "\\WIN\\NetHood");
     151        strcpy(shellpath, InternalGetWindowsDirectoryA());
     152        strcat(shellpath, "\\NetHood");
    153153        CreateDirectoryA(shellpath, NULL);
    154154        RegSetValueExA(hkey,"NetHood",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
    155         strcpy(shellpath, InternalGetSystemDirectoryA());
    156         strcat(shellpath, "\\WIN\\My Documents");
     155        strcpy(shellpath, InternalGetWindowsDirectoryA());
     156        strcat(shellpath, "\\My Documents");
    157157        CreateDirectoryA(shellpath, NULL);
    158158        RegSetValueExA(hkey,"Personal",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
Note: See TracChangeset for help on using the changeset viewer.