Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1f39252d
Commit
1f39252d
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Don't use sizeof in traces to avoid printf format warnings.
parent
28643777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
glyphlist.c
dlls/wineps.drv/glyphlist.c
+2
-13
ppd.c
dlls/wineps.drv/ppd.c
+1
-5
No files found.
dlls/wineps.drv/glyphlist.c
View file @
1f39252d
...
...
@@ -58,11 +58,7 @@ INT PSDRV_GlyphListInit()
TRACE
(
"glyphList will initially hold %i glyph names
\n
"
,
i
);
glyphList
=
HeapAlloc
(
PSDRV_Heap
,
0
,
i
*
sizeof
(
GLYPHNAME
*
));
if
(
glyphList
==
NULL
)
{
ERR
(
"Failed to allocate %i bytes of memory
\n
"
,
i
*
sizeof
(
GLYPHNAME
*
));
return
1
;
}
if
(
glyphList
==
NULL
)
return
1
;
for
(
i
=
0
;
i
<
glyphListSize
;
++
i
)
glyphList
[
i
]
=
PSDRV_AGLGlyphNames
+
i
;
...
...
@@ -82,12 +78,7 @@ inline static INT GlyphListInsert(LPCSTR szName, INT index)
GLYPHNAME
*
g
;
g
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
GLYPHNAME
)
+
strlen
(
szName
)
+
1
);
if
(
g
==
NULL
)
{
ERR
(
"Failed to allocate %i bytes of memory
\n
"
,
sizeof
(
GLYPHNAME
)
+
strlen
(
szName
)
+
1
);
return
-
1
;
}
if
(
g
==
NULL
)
return
-
1
;
g
->
index
=
-
1
;
g
->
sz
=
(
LPSTR
)(
g
+
1
);
...
...
@@ -101,8 +92,6 @@ inline static INT GlyphListInsert(LPCSTR szName, INT index)
(
glyphListSize
+
GLYPHLIST_ALLOCSIZE
)
*
sizeof
(
GLYPHNAME
*
));
if
(
newGlyphList
==
NULL
)
{
ERR
(
"Failed to allocate %i bytes of memory
\n
"
,
(
glyphListSize
+
GLYPHLIST_ALLOCSIZE
)
*
sizeof
(
GLYPHNAME
*
));
HeapFree
(
PSDRV_Heap
,
0
,
g
);
return
-
1
;
}
...
...
dlls/wineps.drv/ppd.c
View file @
1f39252d
...
...
@@ -535,11 +535,7 @@ static INT PSDRV_AddSlot(PPD *ppd, LPSTR szName, LPSTR szFullName,
insert
=
&
((
*
insert
)
->
next
);
slot
=
*
insert
=
HeapAlloc
(
PSDRV_Heap
,
HEAP_ZERO_MEMORY
,
sizeof
(
INPUTSLOT
));
if
(
!
slot
)
{
ERR
(
"Failed to allocate %i bytes of memory
\n
"
,
sizeof
(
INPUTSLOT
));
return
1
;
}
if
(
!
slot
)
return
1
;
slot
->
Name
=
szName
;
slot
->
FullName
=
szFullName
;
...
...
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