Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu2002-05-14 22:37:15 +0000
committerChristophe Cornu2002-05-14 22:37:15 +0000
commit2f3d1b899b6be4cc4f7efa07613dd31f7bb8c580 (patch)
tree04af55b3f5bcad1c2865e81407b6063d7924ff5f /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse
parentef7568b30e08c248905c15ba564f2924472e98d1 (diff)
downloadeclipse.platform.swt-2f3d1b899b6be4cc4f7efa07613dd31f7bb8c580.tar.gz
eclipse.platform.swt-2f3d1b899b6be4cc4f7efa07613dd31f7bb8c580.tar.xz
eclipse.platform.swt-2f3d1b899b6be4cc4f7efa07613dd31f7bb8c580.zip
PR15224
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java13
1 files changed, 8 insertions, 5 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 1787a2cccc..ee7333844d 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
@@ -284,13 +284,16 @@ public String open () {
OS.MoveMemory (buffer, lpstrFile, byteCount1);
/*
- * Bug in WinCE HPC. For some reason, nFileOffset and
- * nFileExtension are always zero. The fix is to parse
- * lpstrFile to calculate nFileOffset. Note: WinCE does
- * not support multiple selection.
+ * Bug in WinCE. For some reason, nFileOffset and nFileExtension
+ * are always zero on WinCE HPC. nFileOffset is always zero on
+ * WinCE PPC when using GetSaveFileName. nFileOffset is correctly
+ * set on WinCE PPC when using OpenFileName. The fix is to parse
+ * lpstrFile to calculate nFileOffset.
+ *
+ * Note: WinCE does not support multi-select file dialogs.
*/
int nFileOffset = struct.nFileOffset;
- if (OS.IsHPC && nFileOffset == 0) {
+ if (OS.IsWinCE && nFileOffset == 0) {
int index = 0;
while (index < buffer.length ()) {
int ch = buffer.tcharAt (index);

Back to the top