mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
- Fix RosRtlDevModeA2W and RosRtlDevModeW2A for older versions of DEVMODE[AW] structures.
svn path=/trunk/; revision=12246
This commit is contained in:
parent
5888259db6
commit
70ea1560fe
1 changed files with 0 additions and 2 deletions
|
@ -14,7 +14,6 @@ RosRtlDevModeA2W ( LPDEVMODEW pW, const LPDEVMODEA pA )
|
|||
{
|
||||
#define COPYS(f,len) MultiByteToWideChar ( CP_THREAD_ACP, 0, (LPSTR)pA->f, len, pW->f, len )
|
||||
#define COPYN(f) pW->f = pA->f
|
||||
memset ( pW, 0, sizeof(DEVMODEW) );
|
||||
COPYS(dmDeviceName, CCHDEVICENAME );
|
||||
COPYN(dmSpecVersion);
|
||||
COPYN(dmDriverVersion);
|
||||
|
@ -80,7 +79,6 @@ RosRtlDevModeW2A( LPDEVMODEA pA, const LPDEVMODEW pW )
|
|||
{
|
||||
#define COPYS(f,len) WideCharToMultiByte( CP_THREAD_ACP, 0, pW->f, len, (LPSTR)pA->f, len, NULL, NULL )
|
||||
#define COPYN(f) pA->f = pW->f
|
||||
memset ( pA, 0, sizeof(DEVMODEA) );
|
||||
COPYS(dmDeviceName, CCHDEVICENAME );
|
||||
COPYN(dmSpecVersion);
|
||||
COPYN(dmDriverVersion);
|
||||
|
|
Loading…
Reference in a new issue