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
11b35c0b
Commit
11b35c0b
authored
May 20, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
May 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error messages.
parent
45b94449
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
msg16.c
dlls/user/msg16.c
+1
-1
info.c
dlls/winspool/info.c
+3
-3
No files found.
dlls/user/msg16.c
View file @
11b35c0b
...
...
@@ -102,7 +102,7 @@ BOOL16 WINAPI PostMessage16( HWND16 hwnd16, UINT16 msg, WPARAM16 wparam, LPARAM
case
0
:
return
PostMessageW
(
hwnd
,
msg32
,
wparam32
,
lparam
);
case
1
:
ERR
(
"16-bit message
%
x contains pointer, cannot post
\n
"
,
msg
);
ERR
(
"16-bit message
0x%04
x contains pointer, cannot post
\n
"
,
msg
);
return
FALSE
;
default:
return
FALSE
;
...
...
dlls/winspool/info.c
View file @
11b35c0b
...
...
@@ -160,7 +160,7 @@ CUPS_LoadPrinters(void) {
if
(
!
AddPrinterA
(
NULL
,
2
,(
LPBYTE
)
&
pinfo2a
))
{
if
(
GetLastError
()
!=
ERROR_PRINTER_ALREADY_EXISTS
)
ERR
(
"
%s not added by AddPrinterA (
%ld)
\n
"
,
printers
[
i
],
GetLastError
());
ERR
(
"
printer '%s' not added by AddPrinterA (error
%ld)
\n
"
,
printers
[
i
],
GetLastError
());
}
HeapFree
(
GetProcessHeap
(),
0
,
port
);
}
...
...
@@ -1060,7 +1060,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter)
*/
size
=
DocumentPropertiesW
(
0
,
-
1
,
pi
->
pPrinterName
,
NULL
,
NULL
,
0
);
if
(
size
<
0
)
{
FIXME
(
"DocumentProperties
fails
\n
"
);
FIXME
(
"DocumentProperties
W on printer '%s' fails
\n
"
,
pi
->
pPrinterName
);
size
=
sizeof
(
DEVMODEW
);
}
if
(
pi
->
pDevMode
)
...
...
@@ -1069,7 +1069,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter)
dmW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
dmW
->
dmSize
=
size
;
if
(
0
>
DocumentPropertiesW
(
0
,
-
1
,
pi
->
pPrinterName
,
dmW
,
NULL
,
DM_OUT_BUFFER
))
{
ERR
(
"DocumentPropertiesW
failed!
\n
"
);
ERR
(
"DocumentPropertiesW
on printer '%s' failed!
\n
"
,
pi
->
pPrinterName
);
SetLastError
(
ERROR_UNKNOWN_PRINTER_DRIVER
);
return
0
;
}
...
...
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