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
ed3ad885
Commit
ed3ad885
authored
Jan 10, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of W->A calls.
parent
862e922c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
21 deletions
+22
-21
colordlg.c
dlls/commdlg/colordlg.c
+2
-1
filedlg.c
dlls/commdlg/filedlg.c
+19
-19
filedlgbrowser.h
dlls/commdlg/filedlgbrowser.h
+1
-1
No files found.
dlls/commdlg/colordlg.c
View file @
ed3ad885
...
...
@@ -1288,7 +1288,8 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol )
{
HRSRC
hResInfo
;
HGLOBAL
hDlgTmpl
;
if
(
!
(
hResInfo
=
FindResourceA
(
COMDLG32_hInstance
,
"CHOOSE_COLOR"
,
(
LPSTR
)
RT_DIALOG
)))
static
const
WCHAR
wszCHOOSE_COLOR
[]
=
{
'C'
,
'H'
,
'O'
,
'O'
,
'S'
,
'E'
,
'_'
,
'C'
,
'O'
,
'L'
,
'O'
,
'R'
,
0
};
if
(
!
(
hResInfo
=
FindResourceW
(
COMDLG32_hInstance
,
wszCHOOSE_COLOR
,
(
LPWSTR
)
RT_DIALOG
)))
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_FINDRESFAILURE
);
return
FALSE
;
...
...
dlls/commdlg/filedlg.c
View file @
ed3ad885
...
...
@@ -314,7 +314,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
ZeroMemory
(
&
fodInfos
,
sizeof
(
FileOpenDlgInfos
));
/* Pass in the original ofn */
fodInfos
.
ofnInfos
=
ofn
;
fodInfos
.
ofnInfos
=
(
LPOPENFILENAMEW
)
ofn
;
/* save current directory */
if
(
ofn
->
Flags
&
OFN_NOCHANGEDIR
)
...
...
@@ -445,13 +445,13 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
{
BOOL
ret
;
FileOpenDlgInfos
fodInfos
;
LPSTR
lpstrSavDir
=
NULL
;
LP
W
STR
lpstrSavDir
=
NULL
;
/* Initialize FileOpenDlgInfos structure */
ZeroMemory
(
&
fodInfos
,
sizeof
(
FileOpenDlgInfos
));
/* Pass in the original ofn */
fodInfos
.
ofnInfos
=
(
LPOPENFILENAMEA
)
ofn
;
fodInfos
.
ofnInfos
=
ofn
;
fodInfos
.
title
=
ofn
->
lpstrTitle
;
fodInfos
.
defext
=
ofn
->
lpstrDefExt
;
...
...
@@ -479,8 +479,8 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
/* save current directory */
if
(
ofn
->
Flags
&
OFN_NOCHANGEDIR
)
{
lpstrSavDir
=
MemAlloc
(
MAX_PATH
);
GetCurrentDirectory
A
(
MAX_PATH
,
lpstrSavDir
);
lpstrSavDir
=
MemAlloc
(
MAX_PATH
*
sizeof
(
WCHAR
)
);
GetCurrentDirectory
W
(
MAX_PATH
,
lpstrSavDir
);
}
fodInfos
.
unicode
=
TRUE
;
...
...
@@ -500,7 +500,7 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
if
(
lpstrSavDir
)
{
SetCurrentDirectory
A
(
lpstrSavDir
);
SetCurrentDirectory
W
(
lpstrSavDir
);
MemFree
(
lpstrSavDir
);
}
...
...
@@ -729,12 +729,12 @@ HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
hinst
=
fodInfos
->
ofnInfos
->
hInstance
;
if
(
fodInfos
->
unicode
)
{
LPOPENFILENAMEW
ofn
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
LPOPENFILENAMEW
ofn
=
fodInfos
->
ofnInfos
;
hRes
=
FindResourceW
(
hinst
,
ofn
->
lpTemplateName
,
(
LPWSTR
)
RT_DIALOG
);
}
else
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
hRes
=
FindResourceA
(
hinst
,
ofn
->
lpTemplateName
,
(
LPSTR
)
RT_DIALOG
);
}
if
(
!
hRes
)
...
...
@@ -807,7 +807,7 @@ HRESULT SendCustomDlgNotificationMessage(HWND hwndParentDlg, UINT uCode)
ofnNotify
.
hdr
.
hwndFrom
=
hwndParentDlg
;
ofnNotify
.
hdr
.
idFrom
=
0
;
ofnNotify
.
hdr
.
code
=
uCode
;
ofnNotify
.
lpOFN
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
ofnNotify
.
lpOFN
=
fodInfos
->
ofnInfos
;
ofnNotify
.
pszFile
=
NULL
;
ret
=
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,(
LPARAM
)
&
ofnNotify
);
}
...
...
@@ -817,7 +817,7 @@ HRESULT SendCustomDlgNotificationMessage(HWND hwndParentDlg, UINT uCode)
ofnNotify
.
hdr
.
hwndFrom
=
hwndParentDlg
;
ofnNotify
.
hdr
.
idFrom
=
0
;
ofnNotify
.
hdr
.
code
=
uCode
;
ofnNotify
.
lpOFN
=
fodInfos
->
ofnInfos
;
ofnNotify
.
lpOFN
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
ofnNotify
.
pszFile
=
NULL
;
ret
=
SendMessageA
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,(
LPARAM
)
&
ofnNotify
);
}
...
...
@@ -1587,12 +1587,12 @@ BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCo
if
(
fodInfos
->
unicode
)
{
LPOPENFILENAMEW
ofn
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
LPOPENFILENAMEW
ofn
=
fodInfos
->
ofnInfos
;
ofn
->
lpstrFile
[
0
]
=
'\0'
;
}
else
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
ofn
->
lpstrFile
[
0
]
=
'\0'
;
}
...
...
@@ -1645,13 +1645,13 @@ BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCo
}
if
(
fodInfos
->
unicode
)
{
LPOPENFILENAMEW
ofn
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
LPOPENFILENAMEW
ofn
=
fodInfos
->
ofnInfos
;
strcpyW
(
ofn
->
lpstrFile
,
lpstrPathSpec
);
memcpy
(
ofn
->
lpstrFile
+
nSizePath
,
lpstrFileList
,
sizeUsed
*
sizeof
(
WCHAR
)
);
}
else
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
if
(
ofn
->
lpstrFile
!=
NULL
)
{
...
...
@@ -2032,7 +2032,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
{
if
(
fodInfos
->
unicode
)
{
LPOPENFILENAMEW
ofn
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
LPOPENFILENAMEW
ofn
=
fodInfos
->
ofnInfos
;
strncpyW
(
ofn
->
lpstrFile
,
lpstrPathAndFile
,
ofn
->
nMaxFile
);
if
(
ofn
->
Flags
&
OFN_ALLOWMULTISELECT
)
...
...
@@ -2040,7 +2040,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
}
else
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
WideCharToMultiByte
(
CP_ACP
,
0
,
lpstrPathAndFile
,
-
1
,
ofn
->
lpstrFile
,
ofn
->
nMaxFile
,
NULL
,
NULL
);
...
...
@@ -2063,12 +2063,12 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
LPWSTR
lpstrFileTitle
=
PathFindFileNameW
(
lpstrPathAndFile
);
if
(
fodInfos
->
unicode
)
{
LPOPENFILENAMEW
ofn
=
(
LPOPENFILENAMEW
)
fodInfos
->
ofnInfos
;
LPOPENFILENAMEW
ofn
=
fodInfos
->
ofnInfos
;
strncpyW
(
ofn
->
lpstrFileTitle
,
lpstrFileTitle
,
ofn
->
nMaxFileTitle
);
}
else
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
WideCharToMultiByte
(
CP_ACP
,
0
,
lpstrFileTitle
,
-
1
,
ofn
->
lpstrFileTitle
,
ofn
->
nMaxFileTitle
,
NULL
,
NULL
);
}
...
...
@@ -2077,7 +2077,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
/* copy currently selected filter to lpstrCustomFilter */
if
(
fodInfos
->
ofnInfos
->
lpstrCustomFilter
)
{
LPOPENFILENAMEA
ofn
=
fodInfos
->
ofnInfos
;
LPOPENFILENAMEA
ofn
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
fodInfos
->
ShellInfos
.
lpstrCurrentFilter
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
len
+
strlen
(
ofn
->
lpstrCustomFilter
)
+
1
<=
ofn
->
nMaxCustFilter
)
...
...
dlls/commdlg/filedlgbrowser.h
View file @
ed3ad885
...
...
@@ -56,7 +56,7 @@
typedef
struct
{
LPOPENFILENAME
A
ofnInfos
;
LPOPENFILENAME
W
ofnInfos
;
BOOL
unicode
;
LPWSTR
initdir
;
LPWSTR
filename
;
...
...
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