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
3c216d01
Commit
3c216d01
authored
Oct 13, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Oct 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed linking by GetProcAddress for StrRetToBuf sinc not all
versions of shlwapi exporting this function.
parent
8c81b743
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
cdlg.h
dlls/commdlg/cdlg.h
+0
-2
cdlg32.c
dlls/commdlg/cdlg32.c
+7
-6
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-1
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+1
-1
No files found.
dlls/commdlg/cdlg.h
View file @
3c216d01
...
...
@@ -117,8 +117,6 @@ extern HRESULT (WINAPI *COMDLG32_SHGetSpecialFolderLocation)(HWND,INT,LPITEMIDLI
extern
DWORD
(
WINAPI
*
COMDLG32_SHGetDesktopFolder
)(
IShellFolder
**
);
extern
DWORD
(
WINAPI
*
COMDLG32_SHGetFileInfoA
)(
LPCSTR
,
DWORD
,
SHFILEINFOA
*
,
UINT
,
UINT
);
extern
DWORD
(
WINAPI
*
COMDLG32_SHFree
)(
LPVOID
);
extern
HRESULT
(
WINAPI
*
COMDLG32_StrRetToBufW
)(
LPSTRRET
,
LPITEMIDLIST
,
LPVOID
,
DWORD
);
extern
HRESULT
(
WINAPI
*
COMDLG32_StrRetToBufA
)(
LPSTRRET
,
LPITEMIDLIST
,
LPVOID
,
DWORD
);
/* PATH */
extern
BOOL
(
WINAPI
*
COMDLG32_PathIsRootA
)(
LPCSTR
x
);
...
...
dlls/commdlg/cdlg32.c
View file @
3c216d01
...
...
@@ -52,8 +52,6 @@ HRESULT (WINAPI *COMDLG32_SHGetSpecialFolderLocation)(HWND,INT,LPITEMIDLIST *);
DWORD
(
WINAPI
*
COMDLG32_SHGetDesktopFolder
)(
IShellFolder
**
);
DWORD
(
WINAPI
*
COMDLG32_SHGetFileInfoA
)(
LPCSTR
,
DWORD
,
SHFILEINFOA
*
,
UINT
,
UINT
);
DWORD
(
WINAPI
*
COMDLG32_SHFree
)(
LPVOID
);
HRESULT
(
WINAPI
*
COMDLG32_StrRetToBufW
)(
LPSTRRET
,
LPITEMIDLIST
,
LPVOID
,
DWORD
);
HRESULT
(
WINAPI
*
COMDLG32_StrRetToBufA
)(
LPSTRRET
,
LPITEMIDLIST
,
LPVOID
,
DWORD
);
/* PATH */
BOOL
(
WINAPI
*
COMDLG32_PathIsRootA
)(
LPCSTR
x
);
...
...
@@ -147,10 +145,13 @@ BOOL WINAPI COMDLG32_DllEntryPoint(HINSTANCE hInstance, DWORD Reason, LPVOID Res
COMDLG32_SHGetDesktopFolder
=
(
void
*
)
GetProcAddress
(
SHELL32_hInstance
,
"SHGetDesktopFolder"
);
COMDLG32_SHGetFileInfoA
=
(
void
*
)
GetProcAddress
(
SHELL32_hInstance
,
"SHGetFileInfoA"
);
/* FIXME - change the followings to call GetProcAddress
when shlwapi.dll will work */
COMDLG32_StrRetToBufW
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hInstance
,
"StrRetToBufW"
);
COMDLG32_StrRetToBufA
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hInstance
,
"StrRetToBufA"
);
/* ### WARINIG ###
We can't do a GetProcAddress to link to StrRetToBuf[A|W] sine not all
versions of the shlwapi are exporting these functions. When we are
seperating the dlls then we have to dublicate code from shell32 into comdlg32.
Till then just call these functions. These functions don't have any side effects
so it won't break the use of any combination of native and buildin dll's (jsch) */
/* PATH */
COMDLG32_PathMatchSpecW
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hInstance
,
"PathMatchSpecW"
);
COMDLG32_PathIsRootA
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hInstance
,
"PathIsRootA"
);
...
...
dlls/commdlg/filedlg95.c
View file @
3c216d01
...
...
@@ -1908,7 +1908,7 @@ HRESULT GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST pidl,DWORD dwFlags,LPSTR lpstrF
dwFlags
,
&
str
)))
{
return
COMDLG32_
StrRetToBufA
(
&
str
,
pidl
,
lpstrFileName
,
MAX_PATH
);
return
StrRetToBufA
(
&
str
,
pidl
,
lpstrFileName
,
MAX_PATH
);
}
return
E_FAIL
;
}
...
...
dlls/commdlg/filedlgbrowser.c
View file @
3c216d01
...
...
@@ -717,7 +717,7 @@ HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_IncludeObject(ICommDlgBrowser *
return
S_OK
;
if
(
SUCCEEDED
(
IShellFolder_GetDisplayNameOf
(
fodInfos
->
Shell
.
FOIShellFolder
,
pidl
,
SHGDN_FORPARSING
,
&
str
)))
{
if
(
SUCCEEDED
(
COMDLG32_
StrRetToBufW
(
&
str
,
pidl
,
szPathW
,
MAX_PATH
)))
{
if
(
SUCCEEDED
(
StrRetToBufW
(
&
str
,
pidl
,
szPathW
,
MAX_PATH
)))
{
if
(
COMDLG32_PathMatchSpecW
(
szPathW
,
fodInfos
->
ShellInfos
.
lpstrCurrentFilter
))
return
S_OK
;
...
...
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