Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2002-10-31 14:53:13 +0000
committerGrant Gayed2002-10-31 14:53:13 +0000
commit51ac14a27f2d9fe9162eaa482360b992447f3fbd (patch)
tree720ea7395bfb3715c038276192cdfd16c83d92a5
parent5864c2ff1cf4f7ab04f369c504bd43f6c4e4e174 (diff)
downloadeclipse.platform.swt-R2_0_1.tar.gz
eclipse.platform.swt-R2_0_1.tar.xz
eclipse.platform.swt-R2_0_1.zip
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java15
-rwxr-xr-xbundles/org.eclipse.swt/buildnotes_swt.html1
2 files changed, 2 insertions, 14 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java
index 2999ab7d69..803316622e 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java
@@ -202,19 +202,6 @@ public String open () {
TCHAR name = new TCHAR (0, fileName, true);
/*
- * Bug/Feature in Windows. Verify that the file name is valid.
- * If an invalid file name is passed to the standard dialog, it
- * does not open and returns an error code. The fix is to avoid
- * this behavior by verifying the file name before opening the
- * dialog. If the file name is not valid, use an empty string.
- */
- if (!OS.IsWinCE) {
- if (OS.GetFileTitle (name, null, (short) 0) < 0) {
- name = new TCHAR (0, "", true);
- }
- }
-
- /*
* Copy the name into lpstrFile and ensure that the
* last byte is NULL and the buffer does not overrun.
* Note that the longest that a single path name can
@@ -307,7 +294,7 @@ public String open () {
index++;
}
}
- if (nFileOffset != 0) {
+ if (nFileOffset > 0) {
/* Use the character encoding for the default locale */
TCHAR prefix = new TCHAR (0, nFileOffset - 1);
diff --git a/bundles/org.eclipse.swt/buildnotes_swt.html b/bundles/org.eclipse.swt/buildnotes_swt.html
index 7e08f1d340..5a25eb57c6 100755
--- a/bundles/org.eclipse.swt/buildnotes_swt.html
+++ b/bundles/org.eclipse.swt/buildnotes_swt.html
@@ -18,6 +18,7 @@ SWT Build 2.0 052 - Wednesday October 30, 2002 (2.0.2 stream)
<blockquote>
10459: I can't run eclipse
<br>24693: org.eclipse.swt.graphics.GC.drawString() fails to draw euro
+<br>24869: GP - Eclipse crashed when entering invalid file name in FileDialog
</blockquote>
<h1>

Back to the top