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
2ee26f21
Commit
2ee26f21
authored
Oct 26, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated trace to support VERSIONED_PRINTER.
parent
4dcab280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
7 deletions
+47
-7
info.c
dlls/version/info.c
+47
-7
No files found.
dlls/version/info.c
View file @
2ee26f21
...
@@ -48,13 +48,44 @@ WINE_DEFAULT_DEBUG_CHANNEL(ver);
...
@@ -48,13 +48,44 @@ WINE_DEFAULT_DEBUG_CHANNEL(ver);
*****************************************************************************/
*****************************************************************************/
static
void
print_vffi_debug
(
VS_FIXEDFILEINFO
*
vffi
)
static
void
print_vffi_debug
(
VS_FIXEDFILEINFO
*
vffi
)
{
{
TRACE
(
"structversion=%u.%u, fileversion=%u.%u.%u.%u, productversion=%u.%u.%u.%u, flagmask=0x%lx, flags=%s%s%s%s%s%s
\n
"
,
BOOL
versioned_printer
=
FALSE
;
HIWORD
(
vffi
->
dwStrucVersion
),
LOWORD
(
vffi
->
dwStrucVersion
),
HIWORD
(
vffi
->
dwFileVersionMS
),
LOWORD
(
vffi
->
dwFileVersionMS
),
if
((
vffi
->
dwFileType
==
VFT_DLL
)
||
(
vffi
->
dwFileType
==
VFT_DRV
))
HIWORD
(
vffi
->
dwFileVersionLS
),
LOWORD
(
vffi
->
dwFileVersionLS
),
{
if
(
vffi
->
dwFileSubtype
==
VFT2_DRV_VERSIONED_PRINTER
)
/* this is documented for newer w2k Drivers and up */
versioned_printer
=
TRUE
;
else
if
(
(
vffi
->
dwFileSubtype
==
VFT2_DRV_PRINTER
)
&&
(
vffi
->
dwFileVersionMS
!=
vffi
->
dwProductVersionMS
)
&&
(
vffi
->
dwFileVersionMS
>
0
)
&&
(
vffi
->
dwFileVersionMS
<=
3
)
)
/* found this on NT 3.51, NT4.0 and old w2k Drivers */
versioned_printer
=
TRUE
;
}
TRACE
(
"structversion=%u.%u, "
,
HIWORD
(
vffi
->
dwStrucVersion
),
LOWORD
(
vffi
->
dwStrucVersion
));
if
(
versioned_printer
)
{
WORD
mode
=
LOWORD
(
vffi
->
dwFileVersionMS
);
WORD
ver_rev
=
HIWORD
(
vffi
->
dwFileVersionLS
);
TRACE
(
"fileversion=%lu.%u.%u.%u (%s.major.minor.release), "
,
(
vffi
->
dwFileVersionMS
),
HIBYTE
(
ver_rev
),
LOBYTE
(
ver_rev
),
LOWORD
(
vffi
->
dwFileVersionLS
),
(
mode
==
3
)
?
"Usermode"
:
((
mode
<=
2
)
?
"Kernelmode"
:
"?"
)
);
}
else
{
TRACE
(
"fileversion=%u.%u.%u.%u, "
,
HIWORD
(
vffi
->
dwFileVersionMS
),
LOWORD
(
vffi
->
dwFileVersionMS
),
HIWORD
(
vffi
->
dwFileVersionLS
),
LOWORD
(
vffi
->
dwFileVersionLS
));
}
TRACE
(
"productversion=%u.%u.%u.%u
\n
"
,
HIWORD
(
vffi
->
dwProductVersionMS
),
LOWORD
(
vffi
->
dwProductVersionMS
),
HIWORD
(
vffi
->
dwProductVersionMS
),
LOWORD
(
vffi
->
dwProductVersionMS
),
HIWORD
(
vffi
->
dwProductVersionLS
),
LOWORD
(
vffi
->
dwProductVersionLS
),
HIWORD
(
vffi
->
dwProductVersionLS
),
LOWORD
(
vffi
->
dwProductVersionLS
));
vffi
->
dwFileFlagsMask
,
TRACE
(
"flagmask=0x%lx, flags=0x%lx %s%s%s%s%s%s
\n
"
,
vffi
->
dwFileFlagsMask
,
vffi
->
dwFileFlags
,
(
vffi
->
dwFileFlags
&
VS_FF_DEBUG
)
?
"DEBUG,"
:
""
,
(
vffi
->
dwFileFlags
&
VS_FF_DEBUG
)
?
"DEBUG,"
:
""
,
(
vffi
->
dwFileFlags
&
VS_FF_PRERELEASE
)
?
"PRERELEASE,"
:
""
,
(
vffi
->
dwFileFlags
&
VS_FF_PRERELEASE
)
?
"PRERELEASE,"
:
""
,
(
vffi
->
dwFileFlags
&
VS_FF_PATCHED
)
?
"PATCHED,"
:
""
,
(
vffi
->
dwFileFlags
&
VS_FF_PATCHED
)
?
"PATCHED,"
:
""
,
...
@@ -93,7 +124,15 @@ static void print_vffi_debug(VS_FIXEDFILEINFO *vffi)
...
@@ -93,7 +124,15 @@ static void print_vffi_debug(VS_FIXEDFILEINFO *vffi)
switch
(
vffi
->
dwFileType
)
switch
(
vffi
->
dwFileType
)
{
{
case
VFT_APP
:
TRACE
(
"filetype=APP"
);
break
;
case
VFT_APP
:
TRACE
(
"filetype=APP"
);
break
;
case
VFT_DLL
:
TRACE
(
"filetype=DLL"
);
break
;
case
VFT_DLL
:
TRACE
(
"filetype=DLL"
);
if
(
vffi
->
dwFileSubtype
!=
0
)
{
if
(
versioned_printer
)
/* NT3.x/NT4.0 or old w2k Driver */
TRACE
(
",PRINTER"
);
TRACE
(
" (subtype=0x%lx)"
,
vffi
->
dwFileSubtype
);
}
break
;
case
VFT_DRV
:
case
VFT_DRV
:
TRACE
(
"filetype=DRV,"
);
TRACE
(
"filetype=DRV,"
);
switch
(
vffi
->
dwFileSubtype
)
switch
(
vffi
->
dwFileSubtype
)
...
@@ -109,6 +148,7 @@ static void print_vffi_debug(VS_FIXEDFILEINFO *vffi)
...
@@ -109,6 +148,7 @@ static void print_vffi_debug(VS_FIXEDFILEINFO *vffi)
case
VFT2_DRV_SOUND
:
TRACE
(
"SOUND"
);
break
;
case
VFT2_DRV_SOUND
:
TRACE
(
"SOUND"
);
break
;
case
VFT2_DRV_COMM
:
TRACE
(
"COMM"
);
break
;
case
VFT2_DRV_COMM
:
TRACE
(
"COMM"
);
break
;
case
VFT2_DRV_INPUTMETHOD
:
TRACE
(
"INPUTMETHOD"
);
break
;
case
VFT2_DRV_INPUTMETHOD
:
TRACE
(
"INPUTMETHOD"
);
break
;
case
VFT2_DRV_VERSIONED_PRINTER
:
TRACE
(
"VERSIONED_PRINTER"
);
break
;
case
VFT2_UNKNOWN
:
case
VFT2_UNKNOWN
:
default:
default:
TRACE
(
"UNKNOWN(0x%lx)"
,
vffi
->
dwFileSubtype
);
break
;
TRACE
(
"UNKNOWN(0x%lx)"
,
vffi
->
dwFileSubtype
);
break
;
...
...
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