Commits

Eduard-Cristian Stefan committed 385eaa5

fix absolute path detection

  • Participants
  • Parent commits 5791ef5

Comments (0)

Files changed (1)

     application = requestedapplication + 2;
 
     /* search the exe directory first */
-    if (requestedapplication[0] == '\\' || requestedapplication[1] == ':') {
-        /* absolute path, we can use LoadLibraryEx with LOAD_WITH_ALTERED_SEARCH_PATH */
-        application = requestedapplication;
-    } else {
+    if (application[0] != '\\' && application[1] != ':') {
         DWORD slash = finddir(scriptfile) + 1;
         strncpy_s(fullfile, sizeof(fullfile), scriptfile, slash);
         fullfile[slash] = 0;