]> git.cworth.org Git - apitrace/blobdiff - common/trace_tools_trace.cpp
Don't compute wrapper filename twice.
[apitrace] / common / trace_tools_trace.cpp
index 56258e5b2cb5422c26b255cc951a5a2c02fae9a6..fe6b3e2d4500acb8d30963163f9f8b81ae149735 100644 (file)
@@ -143,12 +143,9 @@ traceProgram(API api,
 #if defined(_WIN32)
     /* On Windows copy the wrapper to the program directory.
      */
-    os::String wrapperName (wrapperPath);
-    wrapperName.trimDirectory();
-
     os::String tmpWrapper(argv[0]);
     tmpWrapper.trimFilename();
-    tmpWrapper.join(wrapperName);
+    tmpWrapper.join(wrapperFilename);
 
     if (verbose) {
         std::cerr << wrapperPath << " -> " << tmpWrapper << "\n";