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
e8f05eef
Commit
e8f05eef
authored
Nov 11, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add Unicode version of GetFileNameFromBrowse.
Implement GetFileNameFromBrowse as an AW function.
parent
4622889b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
5 deletions
+70
-5
shell32.spec
dlls/shell32/shell32.spec
+1
-1
shellord.c
dlls/shell32/shellord.c
+68
-3
shlobj.h
include/shlobj.h
+1
-1
No files found.
dlls/shell32/shell32.spec
View file @
e8f05eef
...
...
@@ -58,7 +58,7 @@
60 stdcall -noname ExitWindowsDialog(long)
61 stdcall -noname RunFileDlg(long long long str str long) RunFileDlgAW
62 stdcall -noname PickIconDlg(long long long long)
63 stdcall -noname GetFileNameFromBrowse(long long long long str str str)
63 stdcall -noname GetFileNameFromBrowse(long long long long str str str)
GetFileNameFromBrowseAW
64 stdcall -noname DriveType(long)
65 stdcall -noname InvalidateDriveType(long)
66 stdcall -noname IsNetDrive(long)
...
...
dlls/shell32/shellord.c
View file @
e8f05eef
...
...
@@ -167,10 +167,9 @@ DWORD WINAPI ParseFieldAW(LPCVOID src, DWORD nField, LPVOID dst, DWORD len)
}
/*************************************************************************
* GetFileNameFromBrowse [SHELL32.63]
*
* GetFileNameFromBrowseA [internal]
*/
BOOL
WINAPI
GetFileNameFromBrowse
(
BOOL
WINAPI
GetFileNameFromBrowse
A
(
HWND
hwndOwner
,
LPSTR
lpstrFile
,
DWORD
nMaxFile
,
...
...
@@ -215,6 +214,72 @@ BOOL WINAPI GetFileNameFromBrowse(
}
/*************************************************************************
* GetFileNameFromBrowseW [internal]
*/
BOOL
WINAPI
GetFileNameFromBrowseW
(
HWND
hwndOwner
,
LPWSTR
lpstrFile
,
DWORD
nMaxFile
,
LPCWSTR
lpstrInitialDir
,
LPCWSTR
lpstrDefExt
,
LPCWSTR
lpstrFilter
,
LPCWSTR
lpstrTitle
)
{
HMODULE
hmodule
;
BOOL
(
WINAPI
*
pGetOpenFileNameW
)(
LPOPENFILENAMEW
);
OPENFILENAMEW
ofn
;
BOOL
ret
;
TRACE
(
"%p, %s, %d, %s, %s, %s, %s)
\n
"
,
hwndOwner
,
debugstr_w
(
lpstrFile
),
nMaxFile
,
debugstr_w
(
lpstrInitialDir
),
debugstr_w
(
lpstrDefExt
),
debugstr_w
(
lpstrFilter
),
debugstr_w
(
lpstrTitle
));
hmodule
=
LoadLibraryA
(
"comdlg32.dll"
);
if
(
!
hmodule
)
return
FALSE
;
pGetOpenFileNameW
=
(
void
*
)
GetProcAddress
(
hmodule
,
"GetOpenFileNameW"
);
if
(
!
pGetOpenFileNameW
)
{
FreeLibrary
(
hmodule
);
return
FALSE
;
}
memset
(
&
ofn
,
0
,
sizeof
(
ofn
));
ofn
.
lStructSize
=
sizeof
(
ofn
);
ofn
.
hwndOwner
=
hwndOwner
;
ofn
.
lpstrFilter
=
lpstrFilter
;
ofn
.
lpstrFile
=
lpstrFile
;
ofn
.
nMaxFile
=
nMaxFile
;
ofn
.
lpstrInitialDir
=
lpstrInitialDir
;
ofn
.
lpstrTitle
=
lpstrTitle
;
ofn
.
lpstrDefExt
=
lpstrDefExt
;
ofn
.
Flags
=
OFN_EXPLORER
|
OFN_HIDEREADONLY
|
OFN_FILEMUSTEXIST
;
ret
=
pGetOpenFileNameW
(
&
ofn
);
FreeLibrary
(
hmodule
);
return
ret
;
}
/*************************************************************************
* GetFileNameFromBrowse [SHELL32.63]
*
*/
BOOL
WINAPI
GetFileNameFromBrowseAW
(
HWND
hwndOwner
,
LPVOID
lpstrFile
,
DWORD
nMaxFile
,
LPCVOID
lpstrInitialDir
,
LPCVOID
lpstrDefExt
,
LPCVOID
lpstrFilter
,
LPCVOID
lpstrTitle
)
{
if
(
SHELL_OsIsUnicode
())
return
GetFileNameFromBrowseW
(
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpstrInitialDir
,
lpstrDefExt
,
lpstrFilter
,
lpstrTitle
);
return
GetFileNameFromBrowseA
(
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpstrInitialDir
,
lpstrDefExt
,
lpstrFilter
,
lpstrTitle
);
}
/*************************************************************************
* SHGetSetSettings [SHELL32.68]
*/
VOID
WINAPI
SHGetSetSettings
(
LPSHELLSTATE
lpss
,
DWORD
dwMask
,
BOOL
bSet
)
...
...
include/shlobj.h
View file @
e8f05eef
...
...
@@ -53,7 +53,7 @@ void WINAPI SHDestroyPropSheetExtArray(HPSXA);
BOOL
WINAPI
SHFindFiles
(
LPCITEMIDLIST
,
LPCITEMIDLIST
);
DWORD
WINAPI
SHFormatDrive
(
HWND
,
UINT
,
UINT
,
UINT
);
void
WINAPI
SHFree
(
LPVOID
);
BOOL
WINAPI
GetFileNameFromBrowse
(
HWND
,
LP
STR
,
DWORD
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPC
STR
);
BOOL
WINAPI
GetFileNameFromBrowse
(
HWND
,
LP
WSTR
,
DWORD
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPCW
STR
);
HRESULT
WINAPI
SHGetInstanceExplorer
(
IUnknown
**
);
HRESULT
WINAPI
SHGetFolderPathAndSubDirA
(
HWND
,
int
,
HANDLE
,
DWORD
,
LPCSTR
,
LPSTR
);
HRESULT
WINAPI
SHGetFolderPathAndSubDirW
(
HWND
,
int
,
HANDLE
,
DWORD
,
LPCWSTR
,
LPWSTR
);
...
...
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