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
2c8476a0
Commit
2c8476a0
authored
Apr 09, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Fix Win64 warnings.
parent
cde3101b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
print.c
programs/wordpad/print.c
+3
-3
registry.c
programs/wordpad/registry.c
+1
-1
No files found.
programs/wordpad/print.c
View file @
2c8476a0
...
...
@@ -85,7 +85,7 @@ void registry_read_pagemargins(HKEY hKey)
}
}
static
void
AddTextButton
(
HWND
hRebarWnd
,
int
string
,
int
command
,
int
id
)
static
void
AddTextButton
(
HWND
hRebarWnd
,
UINT
string
,
UINT
command
,
UINT
id
)
{
REBARBANDINFOW
rb
;
HINSTANCE
hInstance
=
(
HINSTANCE
)
GetWindowLongPtr
(
hRebarWnd
,
GWLP_HINSTANCE
);
...
...
@@ -95,7 +95,7 @@ static void AddTextButton(HWND hRebarWnd, int string, int command, int id)
LoadStringW
(
hInstance
,
string
,
text
,
MAX_STRING_LEN
);
hButton
=
CreateWindowW
(
WC_BUTTONW
,
text
,
WS_VISIBLE
|
WS_CHILD
,
5
,
5
,
100
,
15
,
hRebarWnd
,
(
HMENU
)
command
,
hInstance
,
NULL
);
hRebarWnd
,
(
HMENU
)
ULongToHandle
(
command
)
,
hInstance
,
NULL
);
rb
.
cbSize
=
sizeof
(
rb
);
rb
.
fMask
=
RBBIM_SIZE
|
RBBIM_CHILDSIZE
|
RBBIM_STYLE
|
RBBIM_CHILD
|
RBBIM_IDEALSIZE
|
RBBIM_ID
;
...
...
@@ -702,7 +702,7 @@ LRESULT print_preview(HWND hMainWnd)
if
(
preview
.
hdc2
)
{
if
(
(
int
)
preview
.
hdc2
!=
-
1
)
if
(
preview
.
hdc2
!=
(
HDC
)
-
1
)
DeleteDC
(
preview
.
hdc2
);
preview
.
hdc2
=
CreateCompatibleDC
(
hdc
);
}
...
...
programs/wordpad/registry.c
View file @
2c8476a0
...
...
@@ -223,7 +223,7 @@ void registry_read_filelist(HWND hMainWnd)
!=
ERROR_SUCCESS
)
break
;
mi
.
dwItemData
=
(
DWORD
)
pFile
[
i
];
mi
.
dwItemData
=
(
ULONG_PTR
)
pFile
[
i
];
wsprintfW
(
itemText
,
numFormat
,
i
+
1
);
lstrcpyW
(
buffer
,
pFile
[
i
]);
...
...
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