[pywin32-checkins] pywin32/win32/src PyDEVMODE.cpp,1.10,1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2010-05-01 20:30:52
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4903 Modified Files: PyDEVMODE.cpp Log Message: Ensure that python attribute changes are propagated (bug #2990983) Index: PyDEVMODE.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyDEVMODE.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PyDEVMODE.cpp 8 Feb 2009 05:20:02 -0000 1.10 --- PyDEVMODE.cpp 1 May 2010 20:30:41 -0000 1.11 *************** *** 321,324 **** --- 321,327 ---- PDEVMODEA PyDEVMODEA::GetDEVMODE(void) { + // Propagate any changes made by python attribute logic from the fixed length DEVMODE + // to the externally visible variable length DEVMODE before handing it off to anyone else + memcpy(pdevmode, &devmode, devmode.dmSize); return pdevmode; } *************** *** 715,718 **** --- 718,724 ---- PDEVMODEW PyDEVMODEW::GetDEVMODE(void) { + // Propagate any changes made by python attribute logic from the fixed length DEVMODE + // to the externally visible variable length DEVMODE before handing it off to anyone else + memcpy(pdevmode, &devmode, devmode.dmSize); return pdevmode; } |