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
14712ece
Commit
14712ece
authored
Feb 09, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: ILFree() and ILIsEqual() are exported by ordinal only on Win9x.…
shell32/tests: ILFree() and ILIsEqual() are exported by ordinal only on Win9x. So use GetProcAddress().
parent
f3899c26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
shlfolder.c
dlls/shell32/tests/shlfolder.c
+18
-15
No files found.
dlls/shell32/tests/shlfolder.c
View file @
14712ece
...
...
@@ -46,6 +46,8 @@ static HRESULT (WINAPI *pSHBindToParent)(LPCITEMIDLIST, REFIID, LPVOID*, LPCITEM
static
BOOL
(
WINAPI
*
pSHGetSpecialFolderPathW
)(
HWND
,
LPWSTR
,
int
,
BOOL
);
static
HRESULT
(
WINAPI
*
pStrRetToBufW
)(
STRRET
*
,
LPCITEMIDLIST
,
LPWSTR
,
UINT
);
static
LPITEMIDLIST
(
WINAPI
*
pILFindLastID
)(
LPCITEMIDLIST
);
static
void
(
WINAPI
*
pILFree
)(
LPITEMIDLIST
);
static
BOOL
(
WINAPI
*
pILIsEqual
)(
LPCITEMIDLIST
,
LPCITEMIDLIST
);
static
void
init_function_pointers
(
void
)
{
...
...
@@ -58,7 +60,8 @@ static void init_function_pointers(void)
pSHBindToParent
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHBindToParent"
);
pSHGetSpecialFolderPathW
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetSpecialFolderPathW"
);
pILFindLastID
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPCSTR
)
16
);
pILFree
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
155
);
pILIsEqual
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
21
);
}
hmod
=
GetModuleHandleA
(
"shlwapi.dll"
);
...
...
@@ -429,10 +432,10 @@ static void test_GetDisplayName(void)
hr
=
IShellFolder_SetNameOf
(
psfPersonal
,
NULL
,
pidlNew
,
wszFileName
,
SHGDN_FORPARSING
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"SetNameOf failed! hr = %08x
\n
"
,
hr
);
ILFree
(
pidlNew
);
p
ILFree
(
pidlNew
);
IShellFolder_Release
(
psfPersonal
);
}
/* Deleting the file and the directory */
DeleteFileA
(
szTestFile
);
RemoveDirectoryA
(
szTestDir
);
...
...
@@ -1122,17 +1125,17 @@ static void test_FolderShortcut(void) {
ok
(
SUCCEEDED
(
hr
),
"IPersistFolder3::Initialize failed! hr = %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
IPersistFolder3_Release
(
pPersistFolder3
);
ILFree
(
pidlWineTestFolder
);
p
ILFree
(
pidlWineTestFolder
);
return
;
}
hr
=
IPersistFolder3_GetCurFolder
(
pPersistFolder3
,
&
pidlCurrentFolder
);
ok
(
SUCCEEDED
(
hr
),
"IPersistFolder3_GetCurFolder failed! hr=0x%08x
\n
"
,
hr
);
ok
(
ILIsEqual
(
pidlCurrentFolder
,
pidlWineTestFolder
),
ok
(
pILIsEqual
(
pidlCurrentFolder
,
pidlWineTestFolder
),
"IPersistFolder3_GetCurFolder should return pidlWineTestFolder!
\n
"
);
ILFree
(
pidlCurrentFolder
);
ILFree
(
pidlWineTestFolder
);
p
ILFree
(
pidlCurrentFolder
);
p
ILFree
(
pidlWineTestFolder
);
hr
=
IPersistFolder3_QueryInterface
(
pPersistFolder3
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
pShellFolder
);
IPersistFolder3_Release
(
pPersistFolder3
);
ok
(
SUCCEEDED
(
hr
),
"IPersistFolder3_QueryInterface(IShellFolder) failed! hr = %08x
\n
"
,
hr
);
...
...
@@ -1166,12 +1169,12 @@ static void test_FolderShortcut(void) {
return
;
}
hr
=
IShellFolder_BindToObject
(
pShellFolder
,
pidlSubFolder
,
NULL
,
&
IID_IPersistFolder3
,
hr
=
IShellFolder_BindToObject
(
pShellFolder
,
pidlSubFolder
,
NULL
,
&
IID_IPersistFolder3
,
(
LPVOID
*
)
&
pPersistFolder3
);
IShellFolder_Release
(
pShellFolder
);
ILFree
(
pidlSubFolder
);
p
ILFree
(
pidlSubFolder
);
ok
(
SUCCEEDED
(
hr
),
"IShellFolder::BindToObject failed! hr = %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
;
/* On windows, we expect CLSID_ShellFSFolder. On wine we relax this constraint
...
...
@@ -1242,10 +1245,10 @@ static void test_ITEMIDLIST_format(void) {
return
;
}
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
pidlPersonal
,
NULL
,
&
IID_IShellFolder
,
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
pidlPersonal
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfPersonal
);
IShellFolder_Release
(
psfDesktop
);
ILFree
(
pidlPersonal
);
p
ILFree
(
pidlPersonal
);
ok
(
SUCCEEDED
(
hr
),
"psfDesktop->BindToObject failed! hr = %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
...
...
@@ -1329,7 +1332,7 @@ static void test_ITEMIDLIST_format(void) {
}
}
ILFree
(
pidlFile
);
p
ILFree
(
pidlFile
);
}
}
...
...
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