Changeset 3378 for trunk/src


Ignore:
Timestamp:
Jun 11, 2020, 11:26:51 PM (5 years ago)
Author:
bird
Message:

kWorker: Set g_Sandbox.pTool to NULL when creating (looking up) the tool for the next job, otherwise the innermost SetDllDirectoryW hack will pick up the directory of the previous tool and we won't necessarily find all the DLLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kWorker/kWorker.c

    r3376 r3378  
    29882988                                        continue;
    29892989                                }
    2990                                 kwErrPrintf("Error getting import '%s' for '%s': %d\n", szName, pMod->pszPath);
     2990                                kwErrPrintf("Error getting import '%s' for '%s': %d (%u)\n",
     2991                                            szName, pMod->pszPath, rc, GetLastError());
    29912992                                break;
    29922993                            }
     
    1235212353     * Lookup the tool.
    1235312354     */
     12355    g_Sandbox.pTool = NULL; /* Avoid confusion between the SetDllDirectoryW hacks. */
    1235412356    pTool = kwToolLookup(pszExecutable, cEnvVars, papszEnvVars);
    1235512357    if (pTool)
Note: See TracChangeset for help on using the changeset viewer.