new launcher all set and working

This commit is contained in:
benfry
2003-09-21 22:35:02 +00:00
parent 4b52c4b213
commit 67caac4a15
2 changed files with 6 additions and 4 deletions
+6 -4
View File
@@ -108,8 +108,8 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
FILE *fp = fopen(env_qtjava, "rb");
if (fp != NULL) {
// found it, all set to go
fclose(fp);
fclose(fp); // found it, all set
strcat(env_qtjava, ";"); // add path separator
} else {
strcpy(env_qtjava, getenv("WINDIR"));
@@ -117,10 +117,12 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
fp = fopen(env_qtjava, "rb");
if (fp != NULL) {
fclose(fp);
fclose(fp); // found it, all set
strcat(env_qtjava, ";"); // add path separator
} else {
// serious problem, but will be caught by the pde
// doesn't seem to be installed, which is a problem.
// but the error will be reported by the pde
env_qtjava[0] = 0;
}
}
Binary file not shown.