Mercurial > dwindows
comparison os2/dw.c @ 356:fb2667339e9f
Guess I should probably make sure they are trying to load a file
with Web Explorer before applying the fix.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 18 Apr 2003 16:00:24 +0000 |
parents | 2216e65ad2ae |
children | cf66410d03b4 |
comparison
equal
deleted
inserted
replaced
355:3a71623fc219 | 356:fb2667339e9f |
---|---|
7828 /* Special case for Web Explorer, it requires file:/// instead | 7828 /* Special case for Web Explorer, it requires file:/// instead |
7829 * of file:// so I am handling it here. | 7829 * of file:// so I am handling it here. |
7830 */ | 7830 */ |
7831 if(len > 0) | 7831 if(len > 0) |
7832 { | 7832 { |
7833 if(stricmp(&browser[len], "explore.exe") == 0) | 7833 if(stricmp(&browser[len], "explore.exe") == 0 && stricmp(url, "file://") == 0) |
7834 { | 7834 { |
7835 int newlen, z; | 7835 int newlen, z; |
7836 newurl = malloc(strlen(url) + 2); | 7836 newurl = malloc(strlen(url) + 2); |
7837 sprintf(newurl, "file:///%s", &url[7]); | 7837 sprintf(newurl, "file:///%s", &url[7]); |
7838 newlen = strlen(newurl); | 7838 newlen = strlen(newurl); |