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
1a882843
Commit
1a882843
authored
Dec 03, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Make some functions static.
parent
02bfacff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
20 deletions
+6
-20
cdlg.h
dlls/comdlg32/cdlg.h
+0
-4
cdlg32.c
dlls/comdlg32/cdlg32.c
+0
-8
filedlg.c
dlls/comdlg32/filedlg.c
+6
-4
filedlgbrowser.h
dlls/comdlg32/filedlgbrowser.h
+0
-4
No files found.
dlls/comdlg32/cdlg.h
View file @
1a882843
...
...
@@ -182,12 +182,8 @@ extern UINT (WINAPI *COMDLG32_PIDL_ILGetSize)(LPCITEMIDLIST);
/* SHELL */
extern
LPVOID
(
WINAPI
*
COMDLG32_SHAlloc
)(
DWORD
);
extern
DWORD
(
WINAPI
*
COMDLG32_SHFree
)(
LPVOID
);
extern
BOOL
(
WINAPI
*
COMDLG32_SHGetFolderPathA
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPSTR
);
extern
BOOL
(
WINAPI
*
COMDLG32_SHGetFolderPathW
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPWSTR
);
extern
BOOL
WINAPI
GetFileDialog95A
(
LPOPENFILENAMEA
ofn
,
UINT
iDlgType
);
extern
BOOL
WINAPI
GetFileDialog95W
(
LPOPENFILENAMEW
ofn
,
UINT
iDlgType
);
/*
* Internal Functions
* Do NOT Export to other programs and dlls
...
...
dlls/comdlg32/cdlg32.c
View file @
1a882843
...
...
@@ -52,7 +52,6 @@ UINT (WINAPI *COMDLG32_PIDL_ILGetSize)(LPCITEMIDLIST);
/* SHELL */
LPVOID
(
WINAPI
*
COMDLG32_SHAlloc
)(
DWORD
);
DWORD
(
WINAPI
*
COMDLG32_SHFree
)(
LPVOID
);
BOOL
(
WINAPI
*
COMDLG32_SHGetFolderPathA
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPSTR
);
BOOL
(
WINAPI
*
COMDLG32_SHGetFolderPathW
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPWSTR
);
/***********************************************************************
...
...
@@ -102,13 +101,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
GPA
(
COMDLG32_SHAlloc
,
SHELL32_hInstance
,
(
LPCSTR
)
196L
);
GPA
(
COMDLG32_SHFree
,
SHELL32_hInstance
,
(
LPCSTR
)
195L
);
/* for the first versions of shell32 SHGetFolderPathA is in SHFOLDER.DLL */
COMDLG32_SHGetFolderPathA
=
(
void
*
)
GetProcAddress
(
SHELL32_hInstance
,
"SHGetFolderPathA"
);
if
(
!
COMDLG32_SHGetFolderPathA
)
{
SHFOLDER_hInstance
=
LoadLibraryA
(
"SHFOLDER.DLL"
);
GPA
(
COMDLG32_SHGetFolderPathA
,
SHFOLDER_hInstance
,
"SHGetFolderPathA"
);
}
/* for the first versions of shell32 SHGetFolderPathW is in SHFOLDER.DLL */
COMDLG32_SHGetFolderPathW
=
(
void
*
)
GetProcAddress
(
SHELL32_hInstance
,
"SHGetFolderPathW"
);
...
...
dlls/comdlg32/filedlg.c
View file @
1a882843
...
...
@@ -220,6 +220,8 @@ static HRESULT GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST pidl,DWORD dwFlags,LPWST
IShellFolder
*
GetShellFolderFromPidl
(
LPITEMIDLIST
pidlAbs
);
LPITEMIDLIST
GetParentPidl
(
LPITEMIDLIST
pidl
);
static
LPITEMIDLIST
GetPidlFromName
(
IShellFolder
*
psf
,
LPWSTR
lpcstrFileName
);
static
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
);
static
UINT
GetNumSelected
(
IDataObject
*
doSelected
);
/* Shell memory allocation */
static
void
*
MemAlloc
(
UINT
size
);
...
...
@@ -312,7 +314,7 @@ static BOOL GetFileName95(FileOpenDlgInfos *fodInfos)
* IN : The OPENFILENAMEA initialisation structure passed to
* GetOpenFileNameA win api function (see filedlg.c)
*/
BOOL
WINAPI
GetFileDialog95A
(
LPOPENFILENAMEA
ofn
,
UINT
iDlgType
)
static
BOOL
GetFileDialog95A
(
LPOPENFILENAMEA
ofn
,
UINT
iDlgType
)
{
BOOL
ret
;
FileOpenDlgInfos
fodInfos
;
...
...
@@ -449,7 +451,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
* Call GetFileName95 with this structure and clean the memory.
*
*/
BOOL
WINAPI
GetFileDialog95W
(
LPOPENFILENAMEW
ofn
,
UINT
iDlgType
)
static
BOOL
GetFileDialog95W
(
LPOPENFILENAMEW
ofn
,
UINT
iDlgType
)
{
BOOL
ret
;
FileOpenDlgInfos
fodInfos
;
...
...
@@ -3291,7 +3293,7 @@ LPITEMIDLIST GetPidlFromDataObject ( IDataObject *doSelected, UINT nPidlIndex)
* Return the number of selected items in the DataObject.
*
*/
UINT
GetNumSelected
(
IDataObject
*
doSelected
)
static
UINT
GetNumSelected
(
IDataObject
*
doSelected
)
{
UINT
retVal
=
0
;
STGMEDIUM
medium
;
...
...
@@ -3430,7 +3432,7 @@ static LPITEMIDLIST GetPidlFromName(IShellFolder *lpsf,LPWSTR lpcstrFileName)
/*
*/
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
)
static
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
)
{
ULONG
uAttr
=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
;
HRESULT
ret
;
...
...
dlls/comdlg32/filedlgbrowser.h
View file @
1a882843
...
...
@@ -148,10 +148,6 @@ IShellBrowser * IShellBrowserImpl_Construct(HWND hwndOwner);
LPITEMIDLIST
GetPidlFromDataObject
(
IDataObject
*
doSelected
,
UINT
nPidlIndex
);
UINT
GetNumSelected
(
IDataObject
*
doSelected
);
/* pidl handling */
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
);
/* Functions used by the EDIT box */
void
FILEDLG95_FILENAME_FillFromSelection
(
HWND
hwnd
);
...
...
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