USER32: win16 applications should not see long filenames returned from dialog control (try 2)

Juan Lang juan.lang at gmail.com
Mon Nov 5 13:08:50 CST 2007


> What do you think about this version?

Better, but still not correct:
+    ret = DlgDirSelectExA( WIN_Handle32(hwnd), buffer, MAX_PATH, id );
+    if (GetLastError() == 0) GetShortPathNameA(buffer, str, len);

You shouldn't check GetLastError() for whether DlgDirSelectExA
succeeded.  Rather, just check ret.  You have the same problem in
DlgDirSelectComboBoxEx16.
--Juan



More information about the wine-devel mailing list