1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00

fixed the pack/unpack of the devicemode

we were being bitten by uint16/uint32 mixups
This commit is contained in:
Andrew Tridgell
-
parent 46f5f41c88
commit 1d37f76953
2 changed files with 86 additions and 52 deletions

View File

@@ -186,11 +186,12 @@ typedef struct nt_printer_param
typedef struct ntdevicemode
{
fstring devicename;
fstring formname;
uint16 specversion;
uint16 driverversion;
uint16 size;
uint16 driverextra;
uint32 fields;
uint16 orientation;
uint16 papersize;
uint16 paperlength;
@@ -204,8 +205,9 @@ typedef struct ntdevicemode
uint16 yresolution;
uint16 ttoption;
uint16 collate;
fstring formname;
uint16 logpixels;
uint32 fields;
uint32 bitsperpel;
uint32 pelswidth;
uint32 pelsheight;