Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1ee26813
Commit
1ee26813
authored
Nov 02, 2023
by
Owen Rudge
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Perform case-insensitive comparison of extension in file dialog.
parent
aef7bf3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
itemdlg.c
dlls/comdlg32/itemdlg.c
+1
-1
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+3
-0
No files found.
dlls/comdlg32/itemdlg.c
View file @
1ee26813
...
...
@@ -641,7 +641,7 @@ static HRESULT on_default_action(FileDialogImpl *This)
if
(
newext
)
{
WCHAR
*
ext
=
PathFindExtensionW
(
canon_filename
);
if
(
lstrcmpW
(
ext
,
newext
))
if
(
lstrcmp
i
W
(
ext
,
newext
))
lstrcatW
(
canon_filename
,
newext
);
}
}
...
...
dlls/comdlg32/tests/itemdlg.c
View file @
1ee26813
...
...
@@ -1494,6 +1494,7 @@ static void test_filename(void)
static
const
WCHAR
filename_dotextW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
0
};
static
const
WCHAR
filename_dotanddefW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'.'
,
'w'
,
't'
,
'e'
,
0
};
static
const
WCHAR
filename_defextW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
't'
,
'e'
,
0
};
static
const
WCHAR
filename_mixedcaseW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'W'
,
'T'
,
'E'
,
0
};
static
const
WCHAR
filename_ext1W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
't'
,
'1'
,
0
};
static
const
WCHAR
filename_ext2W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
't'
,
'2'
,
0
};
static
const
WCHAR
filename_ext1anddefW
[]
=
...
...
@@ -1530,6 +1531,8 @@ static void test_filename(void)
test_filename_savedlg
(
filename_noextW
,
defextW
,
filterspec
,
3
,
filename_ext1W
);
/* Default extension, filterspec with "complex" extension */
test_filename_savedlg
(
filename_noextW
,
defextW
,
filterspec2
,
1
,
filename_ext2W
);
/* Default extension, filterspec with extension that differs in case from the specified filename */
test_filename_savedlg
(
filename_mixedcaseW
,
defextW
,
filterspec
,
0
,
filename_mixedcaseW
);
GetCurrentDirectoryW
(
MAX_PATH
,
buf
);
ok
(
!!
pSHCreateItemFromParsingName
,
"SHCreateItemFromParsingName is missing.
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment