Changes between Version 1 and Version 2 of Ticket #524, comment 1


Ignore:
Timestamp:
Feb 26, 2014, 11:14:12 PM (11 years ago)
Author:
John Small

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #524, comment 1

    v1 v2  
    11To make the function thread-safe, the function's signature will need to change. The new function will:
    221) return the return code from !DosSearchPath (instead of returning a pointer to a static array as the current code does).
    3 2) require an additional parameter: a pointer to where the function should copy the full filename if the search was successful. Since many calls to the search*path functions do not use about the actual filename, this additional parameter can be set to NULL.
     32) require an additional parameter: a pointer to where the function should copy the full filename if the search was successful. Since many calls to the search*path functions do not use the actual filename, this additional parameter can be set to NULL.
    44
    55Changing the signature means all the functions which call searchapath and searchpath (which relays calls to searchapath) will have to change. Since all the calls to searchpath and searchapath will change, each function's name will be changed to a more descriptive name: