wine/dlls/comdlg32
Florian Will 4e167e7e1e comdlg32/tests: Fix itemdlg tests on Windows.
The wine testbot runs tests with C:\Users\Public\Documents as the
working directory. Itemdlg tests create test files in the working
directory and then try to select them for opening in an IFileOpenDialog.
The dialog has its SetFolder method called to point it to the current
working directory before showing the dialog, in order for the test code
to find the test files it had created there just before opening the
dialog.

On Windows, this failed because calling the dialog's SetFolder method
with C:\Users\Public\Documents doesn't work as expected. The dialog
points to the C:\Users\[CURRENT_USER]\Documents directory instead.
Subsequently, the test would be unable to select the test file because
it doesn't exist in that directory. So the dialog wouldn't accept the
file and close itself to finish the test, but show an error message
instead, resulting in a test timeout.

To fix this, set the current working directory to the temporary
directory before calling individual itemdlg test_* functions.
2023-03-13 21:31:55 +01:00
..
tests comdlg32/tests: Fix itemdlg tests on Windows. 2023-03-13 21:31:55 +01:00
cdlg.h
cdlg32.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
cdrom.ico
colordlg.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
comdlg32.rc
comdlg32.spec
comdlg32_classes.idl
filedlg.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
filedlg31.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
filedlgbrowser.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
filedlgbrowser.h
finddlg.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
floppy.ico
folder.ico
folder2.ico
fontdlg.c comdlg32: Use standard va_list instead of __ms_va_list. 2023-02-17 11:25:20 +01:00
fontpics.bmp
hdisk.ico
itemdlg.c comdlg32: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
Makefile.in include: Use proper dllimports for comdlg32 functions. 2022-12-07 13:51:37 +01:00
network.ico
pd32_collate.ico
pd32_collate.svg
pd32_landscape.ico
pd32_landscape.svg
pd32_nocollate.ico
pd32_nocollate.svg
pd32_portrait.ico
pd32_portrait.svg
printdlg.c comdlg32: Use standard va_list instead of __ms_va_list. 2023-02-17 11:25:20 +01:00