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
e7dda902
Commit
e7dda902
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a513e067
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
programs/wordpad/Makefile.in
+0
-1
olecallback.c
programs/wordpad/olecallback.c
+4
-4
wordpad.c
programs/wordpad/wordpad.c
+3
-3
No files found.
programs/wordpad/Makefile.in
View file @
e7dda902
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
wordpad.exe
MODULE
=
wordpad.exe
IMPORTS
=
comdlg32 uuid ole32 shell32 user32 gdi32 advapi32 comctl32
IMPORTS
=
comdlg32 uuid ole32 shell32 user32 gdi32 advapi32 comctl32
...
...
programs/wordpad/olecallback.c
View file @
e7dda902
...
@@ -107,7 +107,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryInsertObject(
...
@@ -107,7 +107,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryInsertObject(
LPSTORAGE
lpstg
,
LPSTORAGE
lpstg
,
LONG
cp
)
LONG
cp
)
{
{
WINE_TRACE
(
"(%p, %p, %p, %d)
\n
"
,
This
,
lpclsid
,
lpstg
,
cp
);
WINE_TRACE
(
"(%p, %p, %p, %
l
d)
\n
"
,
This
,
lpclsid
,
lpstg
,
cp
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -127,7 +127,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryAcceptData(
...
@@ -127,7 +127,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryAcceptData(
BOOL
fReally
,
BOOL
fReally
,
HGLOBAL
hMetaPict
)
HGLOBAL
hMetaPict
)
{
{
WINE_TRACE
(
"(%p, %p, %p, %x, %d, %p)
\n
"
,
WINE_TRACE
(
"(%p, %p, %p, %
l
x, %d, %p)
\n
"
,
This
,
lpdataobj
,
lpcfFormat
,
reco
,
fReally
,
hMetaPict
);
This
,
lpdataobj
,
lpcfFormat
,
reco
,
fReally
,
hMetaPict
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -146,7 +146,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetClipboardData(
...
@@ -146,7 +146,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetClipboardData(
DWORD
reco
,
DWORD
reco
,
LPDATAOBJECT
*
lplpdataobj
)
LPDATAOBJECT
*
lplpdataobj
)
{
{
WINE_TRACE
(
"(%p, %p, %x, %p)
\n
"
,
This
,
lpchrg
,
reco
,
lplpdataobj
);
WINE_TRACE
(
"(%p, %p, %
l
x, %p)
\n
"
,
This
,
lpchrg
,
reco
,
lplpdataobj
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -156,7 +156,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetDragDropEffect(
...
@@ -156,7 +156,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetDragDropEffect(
DWORD
grfKeyState
,
DWORD
grfKeyState
,
LPDWORD
pdwEffect
)
LPDWORD
pdwEffect
)
{
{
WINE_TRACE
(
"(%p, %d, %x, %p)
\n
"
,
This
,
fDrag
,
grfKeyState
,
pdwEffect
);
WINE_TRACE
(
"(%p, %d, %
l
x, %p)
\n
"
,
This
,
fDrag
,
grfKeyState
,
pdwEffect
);
if
(
pdwEffect
)
if
(
pdwEffect
)
*
pdwEffect
=
DROPEFFECT_COPY
;
*
pdwEffect
=
DROPEFFECT_COPY
;
return
S_OK
;
return
S_OK
;
...
...
programs/wordpad/wordpad.c
View file @
e7dda902
...
@@ -2023,7 +2023,7 @@ static LRESULT OnCreate( HWND hWnd )
...
@@ -2023,7 +2023,7 @@ static LRESULT OnCreate( HWND hWnd )
if
(
!
hEditorWnd
)
if
(
!
hEditorWnd
)
{
{
fprintf
(
stderr
,
"Error code %u
\n
"
,
GetLastError
());
fprintf
(
stderr
,
"Error code %
l
u
\n
"
,
GetLastError
());
return
-
1
;
return
-
1
;
}
}
assert
(
hEditorWnd
);
assert
(
hEditorWnd
);
...
@@ -2164,7 +2164,7 @@ static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
...
@@ -2164,7 +2164,7 @@ static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
update_font_list
();
update_font_list
();
sprintf
(
buf
,
"selection = %
d..%d, line count=%l
d"
,
sprintf
(
buf
,
"selection = %
ld..%ld, line count=%I
d"
,
pSC
->
chrg
.
cpMin
,
pSC
->
chrg
.
cpMax
,
pSC
->
chrg
.
cpMin
,
pSC
->
chrg
.
cpMax
,
SendMessageW
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SendMessageW
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SetWindowTextA
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
SetWindowTextA
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
...
@@ -2451,7 +2451,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -2451,7 +2451,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessageW
(
hwndEditor
,
EM_EXGETSEL
,
0
,
(
LPARAM
)
&
range
);
SendMessageW
(
hwndEditor
,
EM_EXGETSEL
,
0
,
(
LPARAM
)
&
range
);
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
)
*
(
range
.
cpMax
-
range
.
cpMin
+
1
));
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
)
*
(
range
.
cpMax
-
range
.
cpMin
+
1
));
SendMessageW
(
hwndEditor
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
data
);
SendMessageW
(
hwndEditor
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
data
);
sprintf
(
buf
,
"Start = %
d, End = %
d"
,
range
.
cpMin
,
range
.
cpMax
);
sprintf
(
buf
,
"Start = %
ld, End = %l
d"
,
range
.
cpMin
,
range
.
cpMax
);
MessageBoxA
(
hWnd
,
buf
,
"Editor"
,
MB_OK
);
MessageBoxA
(
hWnd
,
buf
,
"Editor"
,
MB_OK
);
MessageBoxW
(
hWnd
,
data
,
wszAppTitle
,
MB_OK
);
MessageBoxW
(
hWnd
,
data
,
wszAppTitle
,
MB_OK
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
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