launcher.cxx (055eca97) launcher.cxx (79e08879)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 50 unchanged lines hidden (view full) ---

59 fprintf( stderr, "1 BeginLibPath: %s\n", szLibpath);
60#endif
61 _splitpath( szApplicationName, szDrive, szDir, szFileName, szExt );
62 char* basedir = strstr( szDir, "\\PROGRAM\\");
63 if (basedir) *basedir = 0;
64 sprintf( szLibpath, "\"%s%s\\URE\\BIN\";\"%s%s\\BASIS\\PROGRAM\";%%BeginLIBPATH%%;",
65 szDrive, szDir, szDrive, szDir);
66 DosSetExtLIBPATH( (PCSZ)szLibpath, BEGIN_LIBPATH);
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 50 unchanged lines hidden (view full) ---

59 fprintf( stderr, "1 BeginLibPath: %s\n", szLibpath);
60#endif
61 _splitpath( szApplicationName, szDrive, szDir, szFileName, szExt );
62 char* basedir = strstr( szDir, "\\PROGRAM\\");
63 if (basedir) *basedir = 0;
64 sprintf( szLibpath, "\"%s%s\\URE\\BIN\";\"%s%s\\BASIS\\PROGRAM\";%%BeginLIBPATH%%;",
65 szDrive, szDir, szDrive, szDir);
66 DosSetExtLIBPATH( (PCSZ)szLibpath, BEGIN_LIBPATH);
67
67 // make sure we load DLL from our path only, so multiple instances/versions
68 // can be loaded.
68 // make sure we load DLL from our path only, so multiple instances/versions
69 // can be loaded.
69#if 0
70 // YD this feature is not compatible with innowin b20,
71 // java cannot load with this flag enabled
72 DosSetExtLIBPATH( (PCSZ)"T", LIBPATHSTRICT);
70 DosSetExtLIBPATH( (PCSZ)"T", LIBPATHSTRICT);
73#endif
71
74#if OSL_DEBUG_LEVEL > 0
75 rc = DosQueryExtLIBPATH( (PSZ)szLibpath, BEGIN_LIBPATH);
76 fprintf( stderr, "2 BeginLibPath: %s\n", szLibpath);
77#endif
78
79 // adjust exe name
80 _splitpath( szApplicationName, szDrive, szDir, szFileName, szExt );
81 _makepath( szApplicationName, szDrive, szDir, OFFICE_IMAGE_NAME, (".bin") );

--- 45 unchanged lines hidden ---
72#if OSL_DEBUG_LEVEL > 0
73 rc = DosQueryExtLIBPATH( (PSZ)szLibpath, BEGIN_LIBPATH);
74 fprintf( stderr, "2 BeginLibPath: %s\n", szLibpath);
75#endif
76
77 // adjust exe name
78 _splitpath( szApplicationName, szDrive, szDir, szFileName, szExt );
79 _makepath( szApplicationName, szDrive, szDir, OFFICE_IMAGE_NAME, (".bin") );

--- 45 unchanged lines hidden ---