Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6400c8e3
Commit
6400c8e3
authored
Aug 15, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some SHGetSpecialFolderPathA exceptions on WinME:
- pass pointer to valid buffer as lpszPath. - disable check passing NULL as lpszPath.
parent
756d8e17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
shellpath.c
dlls/shell32/tests/shellpath.c
+8
-5
No files found.
dlls/shell32/tests/shellpath.c
View file @
6400c8e3
...
...
@@ -359,16 +359,18 @@ static void testSHGetSpecialFolderPathInvalidArgs(void)
if
(
!
pSHGetSpecialFolderPathA
)
return
;
#if 0
ret = pSHGetSpecialFolderPathA(NULL, NULL, CSIDL_BITBUCKET, FALSE);
ok(!ret,
"SHGetSpecialFolderPathA(NULL, NULL, CSIDL_BITBUCKET, FALSE)\n"
"returned TRUE, expected FALSE\n");
#endif
/* odd but true: calling with a NULL path still succeeds if it's a real
* dir
* dir
(on some windows platform). on winME it generates exception.
*/
ret
=
pSHGetSpecialFolderPathA
(
NULL
,
NULL
,
CSIDL_PROGRAMS
,
FALSE
);
ret
=
pSHGetSpecialFolderPathA
(
NULL
,
path
,
CSIDL_PROGRAMS
,
FALSE
);
ok
(
ret
,
"SHGetSpecialFolderPathA(NULL,
NULL
, CSIDL_PROGRAMS, FALSE)
\n
"
"SHGetSpecialFolderPathA(NULL,
path
, CSIDL_PROGRAMS, FALSE)
\n
"
"returned FALSE, expected TRUE
\n
"
);
ret
=
pSHGetSpecialFolderPathA
(
NULL
,
path
,
0xeeee
,
FALSE
);
ok
(
!
ret
,
...
...
@@ -720,7 +722,7 @@ static void testNonExistentPath1(void)
/* test some failure cases first: */
hr
=
pSHGetFolderPathA
(
NULL
,
CSIDL_FAVORITES
,
NULL
,
SHGFP_TYPE_CURRENT
,
NULL
);
SHGFP_TYPE_CURRENT
,
path
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"SHGetFolderPath returned 0x%08lx, expected 0x80070002
\n
"
,
hr
);
pidl
=
NULL
;
...
...
@@ -768,9 +770,10 @@ static void testNonExistentPath1(void)
static
void
testNonExistentPath2
(
void
)
{
HRESULT
hr
;
char
path
[
MAX_PATH
];
hr
=
pSHGetFolderPathA
(
NULL
,
CSIDL_FAVORITES
|
CSIDL_FLAG_CREATE
,
NULL
,
SHGFP_TYPE_CURRENT
,
NULL
);
SHGFP_TYPE_CURRENT
,
path
);
ok
(
SUCCEEDED
(
hr
),
"SHGetFolderPath failed: 0x%08lx
\n
"
,
hr
);
}
...
...
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