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
60f85433
Commit
60f85433
authored
Jul 05, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 -Wpointer-sign fixes.
parent
d24938ad
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
filedlg.c
dlls/commdlg/filedlg.c
+2
-2
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+1
-1
fontdlg.c
dlls/commdlg/fontdlg.c
+4
-2
fontdlg16.c
dlls/commdlg/fontdlg16.c
+2
-2
printdlg.c
dlls/commdlg/printdlg.c
+3
-3
printdlg16.c
dlls/commdlg/printdlg16.c
+1
-1
No files found.
dlls/commdlg/filedlg.c
View file @
60f85433
...
...
@@ -850,7 +850,7 @@ void SendCustomDlgNotificationMessage(HWND hwndParentDlg, UINT uCode)
static
INT_PTR
FILEDLG95_Handle_GetFilePath
(
HWND
hwnd
,
DWORD
size
,
LPVOID
buffer
)
{
INT_PTR
sizeUsed
=
0
,
n
,
total
;
UINT
sizeUsed
=
0
,
n
,
total
;
LPWSTR
lpstrFileList
=
NULL
;
WCHAR
lpstrCurrentDir
[
MAX_PATH
];
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
...
...
@@ -912,7 +912,7 @@ static INT_PTR FILEDLG95_Handle_GetFilePath(HWND hwnd, DWORD size, LPVOID buffer
static
INT_PTR
FILEDLG95_Handle_GetFileSpec
(
HWND
hwnd
,
DWORD
size
,
LPVOID
buffer
)
{
INT_PTR
sizeUsed
=
0
;
UINT
sizeUsed
=
0
;
LPWSTR
lpstrFileList
=
NULL
;
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
...
...
dlls/commdlg/filedlgbrowser.c
View file @
60f85433
...
...
@@ -50,7 +50,7 @@ typedef struct
const
IShellBrowserVtbl
*
lpVtbl
;
const
ICommDlgBrowserVtbl
*
lpVtblCommDlgBrowser
;
const
IServiceProviderVtbl
*
lpVtblServiceProvider
;
DWORD
ref
;
/* Reference counter */
LONG
ref
;
/* Reference counter */
HWND
hwndOwner
;
/* Owner dialog of the interface */
}
IShellBrowserImpl
;
...
...
dlls/commdlg/fontdlg.c
View file @
60f85433
...
...
@@ -722,11 +722,13 @@ LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
HFONT
hfontprev
;
TEXTMETRICW
tm
;
LPMEASUREITEMSTRUCT
lpmi
=
(
LPMEASUREITEMSTRUCT
)
lParam
;
INT
height
=
0
;
if
(
!
himlTT
)
himlTT
=
ImageList_LoadImageW
(
COMDLG32_hInstance
,
MAKEINTRESOURCEW
(
38
),
TTBITMAP_XSIZE
,
0
,
CLR_DEFAULT
,
IMAGE_BITMAP
,
0
);
ImageList_GetIconSize
(
himlTT
,
0
,
&
lpmi
->
itemH
eight
);
lpmi
->
itemHeight
+=
2
;
ImageList_GetIconSize
(
himlTT
,
0
,
&
h
eight
);
lpmi
->
itemHeight
=
height
+
2
;
/* use MAX of bitmap height and tm.tmHeight .*/
hdc
=
GetDC
(
hDlg
);
if
(
!
hdc
)
return
0
;
...
...
dlls/commdlg/fontdlg16.c
View file @
60f85433
...
...
@@ -74,14 +74,14 @@ static void CFn_CHOOSEFONT16to32W(LPCHOOSEFONT16 chf16, LPCHOOSEFONTW chf32w)
int
len
;
if
(
chf16
->
lpTemplateName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LP
BYTE
)
chf16
->
lpTemplateName
,
-
1
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LP
CSTR
)
chf16
->
lpTemplateName
,
-
1
,
NULL
,
0
);
chf32w
->
lpTemplateName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPSTR
)
MapSL
(
chf16
->
lpTemplateName
),
-
1
,
(
LPWSTR
)
chf32w
->
lpTemplateName
,
len
);
}
if
(
chf16
->
lpszStyle
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LP
BYTE
)
chf16
->
lpszStyle
,
-
1
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LP
CSTR
)
chf16
->
lpszStyle
,
-
1
,
NULL
,
0
);
chf32w
->
lpszStyle
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPSTR
)
MapSL
(
chf16
->
lpTemplateName
),
-
1
,
chf32w
->
lpszStyle
,
len
);
...
...
dlls/commdlg/printdlg.c
View file @
60f85433
...
...
@@ -473,7 +473,7 @@ static BOOL PRINTDLG_PaperSizeA(
goto
out
;
}
points
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
points
[
0
])
*
NrOfEntries
);
if
(
NrOfEntries
!=
(
ret
=
DeviceCapabilitiesA
(
devname
,
portname
,
DC_PAPERSIZE
,(
LP
BYTE
)
points
,
dm
)))
{
if
(
NrOfEntries
!=
(
ret
=
DeviceCapabilitiesA
(
devname
,
portname
,
DC_PAPERSIZE
,(
LP
STR
)
points
,
dm
)))
{
FIXME
(
"Number of returned sizes %d is not %d?
\n
"
,
NrOfEntries
,
ret
);
goto
out
;
}
...
...
@@ -898,7 +898,7 @@ BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name,
dmSize
=
DocumentPropertiesA
(
0
,
0
,
name
,
PrintStructures
->
lpDevMode
,
NULL
,
DM_OUT_BUFFER
);
if
(
lppd
->
hDevMode
&&
(
lpdm
=
GlobalLock
(
lppd
->
hDevMode
))
&&
!
strcmp
(
lpdm
->
dmDeviceName
,
!
lstrcmpA
(
lpdm
->
dmDeviceName
,
PrintStructures
->
lpDevMode
->
dmDeviceName
))
{
/* Supplied devicemode matches current printer so try to use it */
DocumentPropertiesA
(
0
,
0
,
name
,
PrintStructures
->
lpDevMode
,
lpdm
,
...
...
@@ -1241,7 +1241,7 @@ static LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam,
if
(
pdn
)
name
=
(
char
*
)
pdn
+
pdn
->
wDeviceOffset
;
else
if
(
pdm
)
name
=
pdm
->
dmDeviceName
;
name
=
(
char
*
)
pdm
->
dmDeviceName
;
PRINTDLG_SetUpPrinterListComboA
(
hDlg
,
comboID
,
name
);
if
(
pdm
)
GlobalUnlock
(
lppd
->
hDevMode
);
if
(
pdn
)
GlobalUnlock
(
lppd
->
hDevNames
);
...
...
dlls/commdlg/printdlg16.c
View file @
60f85433
...
...
@@ -192,7 +192,7 @@ static LRESULT PRINTDLG_WMInitDialog16(HWND hDlg, WPARAM wParam, PRINT_PTRA16* p
if
(
pdn
)
name
=
(
char
*
)
pdn
+
pdn
->
wDeviceOffset
;
else
if
(
pdm
)
name
=
pdm
->
dmDeviceName
;
name
=
(
char
*
)
pdm
->
dmDeviceName
;
PRINTDLG_SetUpPrinterListComboA
(
hDlg
,
comboID
,
name
);
if
(
pdm
)
GlobalUnlock16
(
lppd
->
hDevMode
);
if
(
pdn
)
GlobalUnlock16
(
lppd
->
hDevNames
);
...
...
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