24869
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 2999ab7..8033166 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 @@ 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 @@ 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 7e08f1d..5a25eb5 100755 --- a/bundles/org.eclipse.swt/buildnotes_swt.html +++ b/bundles/org.eclipse.swt/buildnotes_swt.html
@@ -18,6 +18,7 @@ <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>