Changeset 3174 in kBuild
- Timestamp:
- Mar 21, 2018 9:37:52 PM (7 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/kDep.c
r3167 r3174 283 283 * Check that the file exists before we start depending on it. 284 284 */ 285 errno = 0; 285 286 #ifdef KWORKER 286 287 if (!kwFsPathExists(pszFilename)) -
trunk/src/lib/nt_fullpath.c
r2849 r3174 44 44 static void w32_fixcase(char *pszPath) 45 45 { 46 #if 0 /* no mp safe */ 46 47 static char s_szLast[260]; 47 48 size_t cchLast; 49 #endif 48 50 49 51 #ifndef NDEBUG … … 107 109 } 108 110 111 #if 0 /* not mp safe */ 109 112 /* 110 113 * Try make use of the result from the previous call. … … 146 149 memcpy(pszDst0, pszSrc0, psz - pszDst0); 147 150 } 151 #endif 148 152 149 153 /* … … 179 183 if (!hDir) 180 184 { 185 #if 0 /* not MP safe */ 181 186 cchLast = psz - pszPath; 182 187 memcpy(s_szLast, pszPath, cchLast + 1); 183 188 s_szLast[cchLast + 1] = '\0'; 189 #endif 184 190 pszEnd[0] = chSaved0; 185 191 return; … … 191 197 if (!FindNextFile(hDir, &FindFileData)) 192 198 { 199 #if 0 /* not MP safe */ 193 200 cchLast = psz - pszPath; 194 201 memcpy(s_szLast, pszPath, cchLast + 1); 195 202 s_szLast[cchLast + 1] = '\0'; 203 #endif 196 204 pszEnd[0] = chSaved0; 197 205 return; … … 238 246 } 239 247 248 #if 0 /* not MP safe */ 240 249 /* *psz == '\0', the end. */ 241 250 cchLast = psz - pszPath; 242 251 memcpy(s_szLast, pszPath, cchLast + 1); 252 #endif 243 253 #undef my_assert 244 254 } … … 312 322 nt_get_filename_info(const char *pszPath, char *pszFull, size_t cchFull) 313 323 { 314 static charabBuf[8192];324 char abBuf[8192]; 315 325 PMY_FILE_NAME_INFORMATION pFileNameInfo = (PMY_FILE_NAME_INFORMATION)abBuf; 316 326 PMY_FILE_FS_VOLUME_INFORMATION pFsVolInfo = (PMY_FILE_FS_VOLUME_INFORMATION)abBuf; 317 327 MY_IO_STATUS_BLOCK Ios; 318 328 LONG rcNt; 319 HANDLE hFile;329 HANDLE hFile; 320 330 int cchOut; 321 331 char *psz;
Note:
See TracChangeset
for help on using the changeset viewer.