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


Ignore:
Timestamp:
Feb 26, 2014, 10:20:10 PM (10 years ago)
Author:
John Small
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #524, comment 1

    v2 v3  
    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 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 only use the (previously) returned filename as a crude return code, 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: