Changeset 2836 for trunk/src/win32k/ldr/myldrOpen.cpp
- Timestamp:
- Feb 21, 2000, 5:45:47 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/myldrOpen.cpp
r2827 r2836 1 /* $Id: myldrOpen.cpp,v 1. 7 2000-02-19 08:40:30bird Exp $1 /* $Id: myldrOpen.cpp,v 1.8 2000-02-21 04:45:47 bird Exp $ 2 2 * 3 3 * myldrOpen - ldrOpen. … … 130 130 if (options.fPE == FLAGS_PE_NOT) 131 131 { 132 free(pszBuffer);132 rfree(pszBuffer); 133 133 return NO_ERROR; 134 134 } … … 208 208 rc = ldrOpen(phFile, "pe.exe", param3); /* path....! problems! */ 209 209 kprintf(("ldrOpen: pe.exe - open returned with rc = %d\n", rc)); 210 free(pszBuffer);210 rfree(pszBuffer); 211 211 return rc; 212 212 } 213 213 } 214 214 } 215 free(pszBuffer);215 rfree(pszBuffer); 216 216 return NO_ERROR; 217 217 } … … 231 231 * Do nothing more yet. NEED AN ELF LOADER!!! 232 232 */ 233 free(pszBuffer);233 rfree(pszBuffer); 234 234 return NO_ERROR; 235 235 } … … 273 273 { 274 274 char *pszStart = pach+2; 275 kprintf(("ldrOpen: scrtip debug 1\n")); 275 276 276 277 /* Make sure we don't read to much... */ … … 283 284 while (*pszStart != '\0' && (*pszStart == ' ' || *pszStart == '\t')) 284 285 pszStart++; 286 kprintf(("ldrOpen: scrtip debug 2\n")); 285 287 286 288 /* anything left on the line? */ … … 295 297 */ 296 298 pszEnd = pszStart; 299 kprintf(("ldrOpen: scrtip debug 3\n")); 297 300 //pszFirstArg = NULL; 298 301 while (*pszEnd != '\0' && *pszEnd != '\r' && *pszEnd != '\n') … … 314 317 } 315 318 *pszEnd = '\0'; 319 kprintf(("ldrOpen: scrtip debug 4\n")); 316 320 317 321 /* … … 319 323 */ 320 324 pBuffer = QueryBufferPointerFromFilename(pszFilename); 325 kprintf(("ldrOpen: scrtip debug 5\n")); 321 326 if (pBuffer != NULL) 322 327 { 323 328 unsigned cchArguments = getArgsLength(pBuffer->achArgs); 324 329 kprintf(("ldrOpen: debug1\n")); 330 331 kprintf(("ldrOpen: scrtip debug 6\n")); 325 332 326 333 /* … … 329 336 if (cchArguments + cchToAdd < sizeof(pBuffer->achArgs)) 330 337 { 331 kprintf(("ldrOpen: debug2\n"));338 kprintf(("ldrOpen: scrtip debug 7\n")); 332 339 /* 333 340 * Open the interpreter. … … 337 344 if (rc == NO_ERROR) 338 345 { 339 kprintf(("ldrOpen: debug3\n"));346 kprintf(("ldrOpen: scritp debug 8\n")); 340 347 /* Make space for the addition arguments. */ 341 348 memmove(&pBuffer->achArgs[cchToAdd], &pBuffer->achArgs[0], cchArguments); 342 349 memcpy(&pBuffer->achArgs[0], pszBuffer, cchToAdd); 343 kprintf(("ldrOpen: debug4\n"));350 kprintf(("ldrOpen: scrtip debug 9\n")); 344 351 } 345 352 else … … 375 382 rc = NO_ERROR; 376 383 } 377 free(pszBuffer);384 rfree(pszBuffer); 378 385 } 379 386 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.