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
94dc49ed
Commit
94dc49ed
authored
Mar 21, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Assign to structs instead of using memcpy.
parent
8789ed6f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
driver.c
dlls/wineps.drv/driver.c
+2
-2
escape.c
dlls/wineps.drv/escape.c
+1
-1
init.c
dlls/wineps.drv/init.c
+2
-2
No files found.
dlls/wineps.drv/driver.c
View file @
94dc49ed
...
...
@@ -279,7 +279,7 @@ static INT_PTR CALLBACK PSDRV_PaperDlgProc(HWND hwnd, UINT msg,
di
=
(
PSDRV_DLGINFO
*
)
GetWindowLongPtrW
(
hwnd
,
DWLP_USER
);
switch
(
nmhdr
->
code
)
{
case
PSN_APPLY
:
memcpy
(
di
->
pi
->
Devmode
,
di
->
dlgdm
,
sizeof
(
PSDRV_DEVMODEA
))
;
*
di
->
pi
->
Devmode
=
*
di
->
dlgdm
;
SetWindowLongPtrW
(
hwnd
,
DWLP_MSGRESULT
,
PSNRET_NOERROR
);
return
TRUE
;
...
...
@@ -370,7 +370,7 @@ INT PSDRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
pPropertySheet
=
(
void
*
)
GetProcAddress
(
hinstComctl32
,
"PropertySheetW"
);
memset
(
&
psp
,
0
,
sizeof
(
psp
));
dlgdm
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
dlgdm
)
);
memcpy
(
dlgdm
,
pi
->
Devmode
,
sizeof
(
*
dlgdm
))
;
*
dlgdm
=
*
pi
->
Devmode
;
di
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
di
)
);
di
->
pi
=
pi
;
di
->
dlgdm
=
dlgdm
;
...
...
dlls/wineps.drv/escape.c
View file @
94dc49ed
...
...
@@ -107,7 +107,7 @@ INT PSDRV_ExtEscape( PSDRV_PDEVICE *physDev, INT nEscape, INT cbInput, LPCVOID i
ibi
->
GraphicsRect
.
left
,
ibi
->
GraphicsRect
.
right
);
memcpy
(
obi
,
ibi
,
sizeof
(
*
ibi
))
;
*
obi
=
*
ibi
;
return
1
;
}
case
NEXTBAND
:
...
...
dlls/wineps.drv/init.c
View file @
94dc49ed
...
...
@@ -352,7 +352,7 @@ BOOL PSDRV_CreateDC( HDC hdc, PSDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR devi
return
FALSE
;
}
memcpy
(
physDev
->
Devmode
,
pi
->
Devmode
,
sizeof
(
PSDRV_DEVMODEA
)
)
;
*
physDev
->
Devmode
=
*
pi
->
Devmode
;
physDev
->
logPixelsX
=
physDev
->
pi
->
ppd
->
DefaultResolution
;
physDev
->
logPixelsY
=
physDev
->
pi
->
ppd
->
DefaultResolution
;
...
...
@@ -566,7 +566,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
pi
->
Devmode
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
DefaultDevmode
)
);
if
(
pi
->
Devmode
==
NULL
)
goto
cleanup
;
memcpy
(
pi
->
Devmode
,
&
DefaultDevmode
,
sizeof
(
DefaultDevmode
)
)
;
*
pi
->
Devmode
=
DefaultDevmode
;
lstrcpynA
((
LPSTR
)
pi
->
Devmode
->
dmPublic
.
dmDeviceName
,
name
,
CCHDEVICENAME
);
using_default_devmode
=
TRUE
;
...
...
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