winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
November 2022
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
1171 discussions
Start a n
N
ew thread
Eric Pouech : msvcrt: Rename modifier into qualifier.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 56b973cdb9c0323b98d11fc53e9d1663486619c8 URL:
https://gitlab.winehq.org/wine/wine/-/commit/56b973cdb9c0323b98d11fc53e9d16…
Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Mon Nov 21 11:30:11 2022 +0100 msvcrt: Rename modifier into qualifier. That's how they are defined in C/C++ standard. Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> --- dlls/msvcrt/undname.c | 106 +++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 53 deletions(-)
1
0
0
0
Eric Pouech : ucrtbase: Extend ucrtbase's undname tests.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 854eb9990f53fab80ac37af4a44d3436ab00da97 URL:
https://gitlab.winehq.org/wine/wine/-/commit/854eb9990f53fab80ac37af4a44d34…
Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Mon Nov 21 11:30:10 2022 +0100 ucrtbase: Extend ucrtbase's undname tests. Renumbering entries' comment to match actual output. Adding ability to pass flags. Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> --- dlls/ucrtbase/tests/cpp.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/dlls/ucrtbase/tests/cpp.c b/dlls/ucrtbase/tests/cpp.c index a22138889cb..b9b36a1e740 100644 --- a/dlls/ucrtbase/tests/cpp.c +++ b/dlls/ucrtbase/tests/cpp.c @@ -192,21 +192,36 @@ static void test___std_type_info(void) static void test___unDName(void) { - static struct {const char *in; const char *out; const char *broken;} und_tests[] = + static struct {const char *in; const char *out; const char *broken; unsigned int flags;} und_tests[] = { -/* 1 */ {"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z", +/* 0 */ {"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z", "public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord &&)"}, -/* 2 */ {"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z", +/* 1 */ {"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z", "public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord && __ptr64)"}, -/* 3 */ {"??__K_l@@YA?AUCC@@I@Z", "struct CC __cdecl operator \"\" _l(unsigned int)", +/* 2 */ {"??__K_l@@YA?AUCC@@I@Z", "struct CC __cdecl operator \"\" _l(unsigned int)", "??__K_l@@YA?AUCC@@I@Z" /* W10 1507 fails on this :-( */}, +/* 3 */ {"?meth@Q@@QEGBA?AV1@XZ", + "public: class Q __cdecl Q::meth(void)const __ptr64& ", + "public: ?? :: ?? ::XZ::V1" /* W10 1507 fails on this :-( */}, +/* 4 */ {"?meth@Q@@QEHAA?AV1@XZ", + "public: class Q __cdecl Q::meth(void) __ptr64&& ", + "public: ?? :: ?? ::XZ::V1" /* W10 1507 fails on this :-( */}, +/* 5 */ {"?meth@Q@@QEGBA?AV1@XZ", + "public: class Q Q::meth(void)const & ", + "public: ?? :: ?? ::XZ::V1" /* W10 1507 fails on this :-( */, + 0x02 /*UNDNAME_NO_MS_KEYWORDS*/}, +/* 6 */ {"?meth@Q@@QEHAA?AV1@XZ", + "public: class Q Q::meth(void)&& ", + "public: ?? :: ?? ::XZ::V1" /* W10 1507 fails on this :-( */, + 0x02 /*UNDNAME_NO_MS_KEYWORDS*/}, }; unsigned i; for (i = 0; i < ARRAY_SIZE(und_tests); i++) { - char *name = p___unDName(0, und_tests[i].in, 0, malloc, free, 0); + char *name = p___unDName(0, und_tests[i].in, 0, malloc, free, und_tests[i].flags); + todo_wine_if(i >= 3) ok(!strcmp(name, und_tests[i].out) || - (broken(und_tests[i].broken && !strcmp(und_tests[i].broken, name))), + broken(und_tests[i].broken && !strcmp(und_tests[i].broken, name)), "unDName returned %s for #%u\n", wine_dbgstr_a(name), i); free(name); }
1
0
0
0
Alexandre Julliard : ntdll: Build the Unix side without -DWINE_NO_LONG_TYPES.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 9f363a69055182c3cba47f664098e9f1bfa98294 URL:
https://gitlab.winehq.org/wine/wine/-/commit/9f363a69055182c3cba47f664098e9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:34:52 2022 +0100 ntdll: Build the Unix side without -DWINE_NO_LONG_TYPES. --- dlls/ntdll/unix/cdrom.c | 13 +++++---- dlls/ntdll/unix/debug.c | 11 ++++---- dlls/ntdll/unix/env.c | 5 ++-- dlls/ntdll/unix/file.c | 57 ++++++++++++++++++++------------------- dlls/ntdll/unix/loader.c | 3 +-- dlls/ntdll/unix/process.c | 17 ++++++------ dlls/ntdll/unix/registry.c | 37 +++++++++++++------------- dlls/ntdll/unix/security.c | 30 ++++++++++----------- dlls/ntdll/unix/serial.c | 5 ++-- dlls/ntdll/unix/server.c | 5 ++-- dlls/ntdll/unix/signal_arm.c | 34 +++++++++++------------- dlls/ntdll/unix/signal_i386.c | 22 +++++++-------- dlls/ntdll/unix/sync.c | 42 ++++++++++++++--------------- dlls/ntdll/unix/system.c | 52 ++++++++++++++++++------------------ dlls/ntdll/unix/tape.c | 25 +++++++++-------- dlls/ntdll/unix/thread.c | 18 ++++++------- dlls/ntdll/unix/virtual.c | 62 +++++++++++++++++++++---------------------- 17 files changed, 212 insertions(+), 226 deletions(-)
1
0
0
0
Alexandre Julliard : ntdll: Build the PE side without -DWINE_NO_LONG_TYPES.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 0adec25f92219b5626b8ee3c1c13396d36e56ed3 URL:
https://gitlab.winehq.org/wine/wine/-/commit/0adec25f92219b5626b8ee3c1c1339…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:27:08 2022 +0100 ntdll: Build the PE side without -DWINE_NO_LONG_TYPES. --- dlls/ntdll/Makefile.in | 2 +- dlls/ntdll/actctx.c | 44 +++++++++++++++---------------- dlls/ntdll/atom.c | 2 +- dlls/ntdll/debugbuffer.c | 42 ++++++++++++++--------------- dlls/ntdll/error.c | 2 +- dlls/ntdll/exception.c | 24 ++++++++--------- dlls/ntdll/handletable.c | 4 +-- dlls/ntdll/heap.c | 36 ++++++++++++------------- dlls/ntdll/loader.c | 57 ++++++++++++++++++++-------------------- dlls/ntdll/locale.c | 28 ++++++++++---------- dlls/ntdll/misc.c | 20 +++++++------- dlls/ntdll/path.c | 4 +-- dlls/ntdll/reg.c | 10 +++---- dlls/ntdll/relay.c | 34 ++++++++++++------------ dlls/ntdll/resource.c | 4 +-- dlls/ntdll/rtl.c | 26 +++++++++--------- dlls/ntdll/rtlbitmap.c | 32 +++++++++++------------ dlls/ntdll/rtlstr.c | 2 +- dlls/ntdll/sec.c | 40 ++++++++++++++-------------- dlls/ntdll/signal_arm.c | 61 +++++++++++++++++++++---------------------- dlls/ntdll/signal_arm64.c | 33 ++++++++++++----------- dlls/ntdll/signal_i386.c | 31 +++++++++++----------- dlls/ntdll/signal_x86_64.c | 31 +++++++++++----------- dlls/ntdll/sync.c | 8 +++--- dlls/ntdll/thread.c | 12 ++++----- dlls/ntdll/threadpool.c | 26 +++++++++--------- dlls/ntdll/unix/cdrom.c | 1 + dlls/ntdll/unix/debug.c | 1 + dlls/ntdll/unix/env.c | 1 + dlls/ntdll/unix/file.c | 1 + dlls/ntdll/unix/loader.c | 1 + dlls/ntdll/unix/process.c | 1 + dlls/ntdll/unix/registry.c | 1 + dlls/ntdll/unix/security.c | 1 + dlls/ntdll/unix/serial.c | 1 + dlls/ntdll/unix/server.c | 1 + dlls/ntdll/unix/signal_arm.c | 1 + dlls/ntdll/unix/signal_i386.c | 1 + dlls/ntdll/unix/sync.c | 1 + dlls/ntdll/unix/system.c | 1 + dlls/ntdll/unix/tape.c | 1 + dlls/ntdll/unix/thread.c | 1 + dlls/ntdll/unix/virtual.c | 1 + dlls/ntdll/version.c | 6 ++--- 44 files changed, 325 insertions(+), 313 deletions(-)
1
0
0
0
Alexandre Julliard : ntdll: Use unsigned int for the return value of server calls.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: af4378d46dbb72e682017485212442bf865c2226 URL:
https://gitlab.winehq.org/wine/wine/-/commit/af4378d46dbb72e682017485212442…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:21:43 2022 +0100 ntdll: Use unsigned int for the return value of server calls. To avoid typecasts in debug traces. --- dlls/ntdll/unix/env.c | 2 +- dlls/ntdll/unix/file.c | 102 +++++++++++++++++++------------------- dlls/ntdll/unix/loader.c | 10 ++-- dlls/ntdll/unix/process.c | 24 ++++----- dlls/ntdll/unix/registry.c | 28 +++++------ dlls/ntdll/unix/security.c | 24 ++++----- dlls/ntdll/unix/serial.c | 4 +- dlls/ntdll/unix/server.c | 10 ++-- dlls/ntdll/unix/signal_i386.c | 2 +- dlls/ntdll/unix/socket.c | 9 ++-- dlls/ntdll/unix/sync.c | 110 ++++++++++++++++++++--------------------- dlls/ntdll/unix/system.c | 8 +-- dlls/ntdll/unix/thread.c | 28 +++++------ dlls/ntdll/unix/unix_private.h | 4 +- dlls/ntdll/unix/virtual.c | 77 ++++++++++++++--------------- 15 files changed, 219 insertions(+), 223 deletions(-)
1
0
0
0
Alexandre Julliard : ntdll: Use int instead of long types in a few places.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 74a5851ef48cafe02e4383df4dd5742ae55ba75f URL:
https://gitlab.winehq.org/wine/wine/-/commit/74a5851ef48cafe02e4383df4dd574…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:21:16 2022 +0100 ntdll: Use int instead of long types in a few places. To avoid typecasts in debug traces. --- dlls/ntdll/unix/debug.c | 2 +- dlls/ntdll/unix/env.c | 6 ++--- dlls/ntdll/unix/file.c | 16 ++++++------ dlls/ntdll/unix/serial.c | 18 +++++++------- dlls/ntdll/unix/signal_arm.c | 49 ++++++++++++++++++------------------ dlls/ntdll/unix/signal_i386.c | 58 +++++++++++++++++++++---------------------- dlls/ntdll/unix/socket.c | 2 +- dlls/ntdll/unix/tape.c | 2 +- include/wine/afd.h | 4 +-- 9 files changed, 78 insertions(+), 79 deletions(-)
1
0
0
0
Alexandre Julliard : ntdll: Use unsigned int instead of NTSTATUS in async callbacks.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 1a7cacc48949b9a4182539d7f7f2c0db32be7cee URL:
https://gitlab.winehq.org/wine/wine/-/commit/1a7cacc48949b9a4182539d7f7f2c0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:19:08 2022 +0100 ntdll: Use unsigned int instead of NTSTATUS in async callbacks. To avoid typecasts in debug traces. --- dlls/ntdll/unix/file.c | 8 ++++---- dlls/ntdll/unix/server.c | 2 +- dlls/ntdll/unix/socket.c | 6 +++--- dlls/ntdll/unix/unix_private.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 95ca5fa9b51..c40447933f0 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -4903,7 +4903,7 @@ struct async_fileio *alloc_fileio( DWORD size, async_callback_t callback, HANDLE } /* callback for irp async I/O completion */ -static BOOL irp_completion( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL irp_completion( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_irp *async = user; @@ -4921,7 +4921,7 @@ static BOOL irp_completion( void *user, ULONG_PTR *info, NTSTATUS *status ) return TRUE; } -static BOOL async_read_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL async_read_proc( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_fileio_read *fileio = user; int fd, needs_close, result; @@ -4971,7 +4971,7 @@ static BOOL async_read_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) return TRUE; } -static BOOL async_write_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL async_write_proc( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_fileio_write *fileio = user; int result, fd, needs_close; @@ -6327,7 +6327,7 @@ NTSTATUS WINAPI NtUnlockFile( HANDLE handle, IO_STATUS_BLOCK *io_status, LARGE_I } -static BOOL read_changes_apc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL read_changes_apc( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_fileio_read_changes *fileio = user; int size = 0; diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c index 3daaf95d8ee..a960e881395 100644 --- a/dlls/ntdll/unix/server.c +++ b/dlls/ntdll/unix/server.c @@ -371,7 +371,7 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result, BOO { struct async_fileio *user = wine_server_get_ptr( call->async_io.user ); ULONG_PTR info = call->async_io.result; - NTSTATUS status; + unsigned int status; result->type = call->type; status = call->async_io.status; diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c index 779cc46fe32..3cddc7da965 100644 --- a/dlls/ntdll/unix/socket.c +++ b/dlls/ntdll/unix/socket.c @@ -809,7 +809,7 @@ static NTSTATUS try_recv( int fd, struct async_recv_ioctl *async, ULONG_PTR *siz return status; } -static BOOL async_recv_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL async_recv_proc( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_recv_ioctl *async = user; int fd, needs_close; @@ -1046,7 +1046,7 @@ static NTSTATUS try_send( int fd, struct async_send_ioctl *async ) return STATUS_SUCCESS; } -static BOOL async_send_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL async_send_proc( void *user, ULONG_PTR *info, unsigned int *status ) { struct async_send_ioctl *async = user; int fd, needs_close; @@ -1293,7 +1293,7 @@ static NTSTATUS try_transmit( int sock_fd, int file_fd, struct async_transmit_io return STATUS_SUCCESS; } -static BOOL async_transmit_proc( void *user, ULONG_PTR *info, NTSTATUS *status ) +static BOOL async_transmit_proc( void *user, ULONG_PTR *info, unsigned int *status ) { int sock_fd, file_fd = -1, sock_needs_close = FALSE, file_needs_close = FALSE; struct async_transmit_ioctl *async = user; diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h index afdb8397415..b8570e642ac 100644 --- a/dlls/ntdll/unix/unix_private.h +++ b/dlls/ntdll/unix/unix_private.h @@ -76,7 +76,7 @@ static inline struct ntdll_thread_data *ntdll_get_thread_data(void) } /* returns TRUE if the async is complete; FALSE if it should be restarted */ -typedef BOOL async_callback_t( void *user, ULONG_PTR *info, NTSTATUS *status ); +typedef BOOL async_callback_t( void *user, ULONG_PTR *info, unsigned int *status ); struct async_fileio {
1
0
0
0
Alexandre Julliard : ntdll: Use UINT instead of ULONG in ioctl helpers.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: 7afd11232eeb9fd019f7ea3cc5a65d7811a028fb URL:
https://gitlab.winehq.org/wine/wine/-/commit/7afd11232eeb9fd019f7ea3cc5a65d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:19:31 2022 +0100 ntdll: Use UINT instead of ULONG in ioctl helpers. To avoid typecasts in debug traces. --- dlls/ntdll/unix/cdrom.c | 4 ++-- dlls/ntdll/unix/file.c | 6 +++--- dlls/ntdll/unix/serial.c | 10 +++++----- dlls/ntdll/unix/socket.c | 2 +- dlls/ntdll/unix/tape.c | 6 +++--- dlls/ntdll/unix/unix_private.h | 14 +++++++------- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/dlls/ntdll/unix/cdrom.c b/dlls/ntdll/unix/cdrom.c index a4a9400a518..a9acdf7a645 100644 --- a/dlls/ntdll/unix/cdrom.c +++ b/dlls/ntdll/unix/cdrom.c @@ -2814,8 +2814,8 @@ static NTSTATUS GetInquiryData(int fd, PSCSI_ADAPTER_BUS_INFO BufferOut, DWORD O * cdrom_DeviceIoControl */ NTSTATUS cdrom_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) { DWORD sz = 0; NTSTATUS status = STATUS_SUCCESS; diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index e80eb368e8a..95ca5fa9b51 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -5095,9 +5095,9 @@ static NTSTATUS server_write_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE /* do an ioctl call through the server */ static NTSTATUS server_ioctl_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, PVOID apc_context, - IO_STATUS_BLOCK *io, ULONG code, - const void *in_buffer, ULONG in_size, - PVOID out_buffer, ULONG out_size ) + IO_STATUS_BLOCK *io, UINT code, + const void *in_buffer, UINT in_size, + PVOID out_buffer, UINT out_size ) { struct async_irp *async; NTSTATUS status; diff --git a/dlls/ntdll/unix/serial.c b/dlls/ntdll/unix/serial.c index 16c5964b77b..fce09500c91 100644 --- a/dlls/ntdll/unix/serial.c +++ b/dlls/ntdll/unix/serial.c @@ -71,7 +71,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(comm); -static const char* iocode2str(DWORD ioc) +static const char* iocode2str(UINT ioc) { switch (ioc) { @@ -1096,8 +1096,8 @@ static NTSTATUS xmit_immediate(HANDLE hDevice, int fd, const char* ptr) } static NTSTATUS io_control( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) { DWORD sz = 0, access = FILE_READ_DATA; NTSTATUS status = STATUS_SUCCESS; @@ -1320,8 +1320,8 @@ static NTSTATUS io_control( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, vo * serial_DeviceIoControl */ NTSTATUS serial_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) { NTSTATUS status; diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c index beb8382687a..779cc46fe32 100644 --- a/dlls/ntdll/unix/socket.c +++ b/dlls/ntdll/unix/socket.c @@ -1487,7 +1487,7 @@ static int get_sock_type( HANDLE handle ) NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, IO_STATUS_BLOCK *io, - ULONG code, void *in_buffer, ULONG in_size, void *out_buffer, ULONG out_size ) + UINT code, void *in_buffer, UINT in_size, void *out_buffer, UINT out_size ) { int fd, needs_close = FALSE; NTSTATUS status; diff --git a/dlls/ntdll/unix/tape.c b/dlls/ntdll/unix/tape.c index 40ac307a632..a7ca04badb0 100644 --- a/dlls/ntdll/unix/tape.c +++ b/dlls/ntdll/unix/tape.c @@ -66,7 +66,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(tape); -static const char *io2str( DWORD io ) +static const char *io2str( unsigned int io ) { switch (io) { @@ -519,8 +519,8 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data ) * tape_DeviceIoControl */ NTSTATUS tape_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, - void *in_buffer, ULONG in_size, void *out_buffer, ULONG out_size ) + IO_STATUS_BLOCK *io, UINT code, + void *in_buffer, UINT in_size, void *out_buffer, UINT out_size ) { DWORD sz = 0; NTSTATUS status = STATUS_INVALID_PARAMETER; diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h index 9cf8989fb0d..afdb8397415 100644 --- a/dlls/ntdll/unix/unix_private.h +++ b/dlls/ntdll/unix/unix_private.h @@ -252,21 +252,21 @@ extern void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid ) DECLSPEC_HIDD extern NTSTATUS open_hkcu_key( const char *path, HANDLE *key ) DECLSPEC_HIDDEN; extern NTSTATUS cdrom_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) DECLSPEC_HIDDEN; + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) DECLSPEC_HIDDEN; extern NTSTATUS serial_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) DECLSPEC_HIDDEN; + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) DECLSPEC_HIDDEN; extern NTSTATUS serial_FlushBuffersFile( int fd ) DECLSPEC_HIDDEN; extern NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, IO_STATUS_BLOCK *io, - ULONG code, void *in_buffer, ULONG in_size, void *out_buffer, ULONG out_size ) DECLSPEC_HIDDEN; + UINT code, void *in_buffer, UINT in_size, void *out_buffer, UINT out_size ) DECLSPEC_HIDDEN; extern NTSTATUS sock_read( HANDLE handle, int fd, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, IO_STATUS_BLOCK *io, void *buffer, ULONG length ) DECLSPEC_HIDDEN; extern NTSTATUS sock_write( HANDLE handle, int fd, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, IO_STATUS_BLOCK *io, const void *buffer, ULONG length ) DECLSPEC_HIDDEN; extern NTSTATUS tape_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, - IO_STATUS_BLOCK *io, ULONG code, void *in_buffer, - ULONG in_size, void *out_buffer, ULONG out_size ) DECLSPEC_HIDDEN; + IO_STATUS_BLOCK *io, UINT code, void *in_buffer, + UINT in_size, void *out_buffer, UINT out_size ) DECLSPEC_HIDDEN; extern struct async_fileio *alloc_fileio( DWORD size, async_callback_t callback, HANDLE handle ) DECLSPEC_HIDDEN; extern void release_fileio( struct async_fileio *io ) DECLSPEC_HIDDEN;
1
0
0
0
Alexandre Julliard : ntdll: Fix int/long type mismatches.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: d5e2ab1a9858135ba778ee642a5b91325d33e928 URL:
https://gitlab.winehq.org/wine/wine/-/commit/d5e2ab1a9858135ba778ee642a5b91…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 21 16:18:44 2022 +0100 ntdll: Fix int/long type mismatches. --- dlls/ntdll/unix/server.c | 5 +++-- dlls/ntdll/unix/socket.c | 4 ++-- dlls/ntdll/unix/sync.c | 12 ++++++------ dlls/ntdll/unix/system.c | 19 ++++++++++--------- dlls/ntdll/unix/thread.c | 2 +- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c index 07d9c8d3acd..3daaf95d8ee 100644 --- a/dlls/ntdll/unix/server.c +++ b/dlls/ntdll/unix/server.c @@ -474,11 +474,12 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result, BOO size = call->virtual_protect.size; if ((ULONG_PTR)addr == call->virtual_protect.addr && size == call->virtual_protect.size) { + ULONG prot; result->virtual_protect.status = NtProtectVirtualMemory( NtCurrentProcess(), &addr, &size, - call->virtual_protect.prot, - &result->virtual_protect.prot ); + call->virtual_protect.prot, &prot ); result->virtual_protect.addr = wine_server_client_ptr( addr ); result->virtual_protect.size = size; + result->virtual_protect.prot = prot; } else result->virtual_protect.status = STATUS_INVALID_PARAMETER; break; diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c index 7dbf03365bb..beb8382687a 100644 --- a/dlls/ntdll/unix/socket.c +++ b/dlls/ntdll/unix/socket.c @@ -113,7 +113,7 @@ struct async_recv_ioctl void *control; struct WS_sockaddr *addr; int *addr_len; - DWORD *ret_flags; + unsigned int *ret_flags; int unix_flags; unsigned int count; BOOL icmp_over_dgram; @@ -907,7 +907,7 @@ static NTSTATUS sock_recv( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, voi static NTSTATUS sock_ioctl_recv( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc_user, IO_STATUS_BLOCK *io, int fd, const void *buffers_ptr, unsigned int count, WSABUF *control, - struct WS_sockaddr *addr, int *addr_len, DWORD *ret_flags, int unix_flags, int force_async ) + struct WS_sockaddr *addr, int *addr_len, unsigned int *ret_flags, int unix_flags, int force_async ) { struct async_recv_ioctl *async; DWORD async_size; diff --git a/dlls/ntdll/unix/sync.c b/dlls/ntdll/unix/sync.c index 9112572c67d..c085bffe34d 100644 --- a/dlls/ntdll/unix/sync.c +++ b/dlls/ntdll/unix/sync.c @@ -109,7 +109,7 @@ static inline ULONGLONG monotonic_counter(void) static int futex_private = 128; -static inline int futex_wait( const int *addr, int val, struct timespec *timeout ) +static inline int futex_wait( const LONG *addr, int val, struct timespec *timeout ) { #if (defined(__i386__) || defined(__arm__)) && _TIME_BITS==64 if (timeout && sizeof(*timeout) != 8) @@ -125,14 +125,14 @@ static inline int futex_wait( const int *addr, int val, struct timespec *timeout return syscall( __NR_futex, addr, FUTEX_WAIT | futex_private, val, timeout, 0, 0 ); } -static inline int futex_wake( const int *addr, int val ) +static inline int futex_wake( const LONG *addr, int val ) { return syscall( __NR_futex, addr, FUTEX_WAKE | futex_private, val, NULL, 0, 0 ); } static inline int use_futexes(void) { - static int supported = -1; + static LONG supported = -1; if (supported == -1) { @@ -2309,7 +2309,7 @@ union tid_alert_entry #else HANDLE event; #ifdef __linux__ - int futex; + LONG futex; #endif #endif }; @@ -2395,7 +2395,7 @@ NTSTATUS WINAPI NtAlertThreadByThreadId( HANDLE tid ) #ifdef __linux__ if (use_futexes()) { - int *futex = &entry->futex; + LONG *futex = &entry->futex; if (!InterlockedExchange( futex, 1 )) futex_wake( futex, 1 ); return STATUS_SUCCESS; @@ -2496,7 +2496,7 @@ NTSTATUS WINAPI NtWaitForAlertByThreadId( const void *address, const LARGE_INTEG #ifdef __linux__ if (use_futexes()) { - int *futex = &entry->futex; + LONG *futex = &entry->futex; ULONGLONG end; int ret; diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index ba2051da65e..4551c9603a3 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -777,7 +777,7 @@ static BOOL logical_proc_info_add_group( DWORD num_cpus, ULONG_PTR mask ) static BOOL sysfs_parse_bitmap(const char *filename, ULONG_PTR *mask) { FILE *f; - DWORD r; + unsigned int r; f = fopen(filename, "r"); if (!f) return FALSE; @@ -802,7 +802,7 @@ static BOOL sysfs_parse_bitmap(const char *filename, ULONG_PTR *mask) * - /sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list * - /sys/devices/system/cpu/cpu0/topology/thread_siblings_list. */ -static BOOL sysfs_count_list_elements(const char *filename, DWORD *result) +static BOOL sysfs_count_list_elements(const char *filename, unsigned int *result) { FILE *f; @@ -812,7 +812,7 @@ static BOOL sysfs_count_list_elements(const char *filename, DWORD *result) while (!feof(f)) { char op; - DWORD beg, end; + unsigned int beg, end; if (!fscanf(f, "%u%c ", &beg, &op)) break; if(op == '-') @@ -834,7 +834,7 @@ static NTSTATUS create_logical_proc_info(void) static const char numa_info[] = "/sys/devices/system/node/node%u/cpumap"; FILE *fcpu_list, *fnuma_list, *f; - DWORD beg, end, i, j, r, num_cpus = 0, max_cpus = 0; + unsigned int beg, end, i, j, r, num_cpus = 0, max_cpus = 0; char op, name[MAX_PATH]; ULONG_PTR all_cpus_mask = 0; @@ -863,7 +863,7 @@ static NTSTATUS create_logical_proc_info(void) for(i = beg; i <= end; i++) { - DWORD phys_core = 0; + unsigned int phys_core = 0; ULONG_PTR thread_mask = 0; if (i > 8 * sizeof(ULONG_PTR)) @@ -3682,14 +3682,15 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, if ((out_size / sizeof(PROCESSOR_POWER_INFORMATION)) < out_cpus) return STATUS_BUFFER_TOO_SMALL; #if defined(linux) { + unsigned int val; char filename[128]; FILE* f; for(i = 0; i < out_cpus; i++) { sprintf(filename, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq", i); f = fopen(filename, "r"); - if (f && (fscanf(f, "%d", &cpu_power[i].MaxMhz) == 1)) { - cpu_power[i].MaxMhz /= 1000; + if (f && (fscanf(f, "%u", &val) == 1)) { + cpu_power[i].MaxMhz = val / 1000; fclose(f); cpu_power[i].CurrentMhz = cpu_power[i].MaxMhz; } @@ -3707,8 +3708,8 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, sprintf(filename, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq", i); f = fopen(filename, "r"); - if(f && (fscanf(f, "%d", &cpu_power[i].MhzLimit) == 1)) { - cpu_power[i].MhzLimit /= 1000; + if(f && (fscanf(f, "%u", &val) == 1)) { + cpu_power[i].MhzLimit = val / 1000; fclose(f); } else diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c index 711cb4cb13c..5d140c90c42 100644 --- a/dlls/ntdll/unix/thread.c +++ b/dlls/ntdll/unix/thread.c @@ -79,7 +79,7 @@ WINE_DECLARE_DEBUG_CHANNEL(threadname); pthread_key_t teb_key = 0; -static int nb_threads = 1; +static LONG nb_threads = 1; static inline int get_unix_exit_code( NTSTATUS status ) {
1
0
0
0
Piotr Caban : winprint: Implement RAW print processor.
by Alexandre Julliard
21 Nov '22
21 Nov '22
Module: wine Branch: master Commit: f63a9b592ce29bb5cd081d441ab4dbdc1b373478 URL:
https://gitlab.winehq.org/wine/wine/-/commit/f63a9b592ce29bb5cd081d441ab4db…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Oct 26 13:33:37 2022 +0200 winprint: Implement RAW print processor. --- dlls/winprint/Makefile.in | 1 + dlls/winprint/printproc.c | 161 +++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 147 insertions(+), 15 deletions(-) diff --git a/dlls/winprint/Makefile.in b/dlls/winprint/Makefile.in index 002004b1d0d..57851fc5b04 100644 --- a/dlls/winprint/Makefile.in +++ b/dlls/winprint/Makefile.in @@ -1,4 +1,5 @@ MODULE = winprint.dll +IMPORTS = winspool C_SRCS = \ printproc.c diff --git a/dlls/winprint/printproc.c b/dlls/winprint/printproc.c index 7cc8759d801..d7d9cce9d93 100644 --- a/dlls/winprint/printproc.c +++ b/dlls/winprint/printproc.c @@ -18,6 +18,20 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +/* Missing datatypes support: + * RAW [FF appended] + * RAW [FF auto] + * NT EMF 1.003 + * NT EMF 1.006 + * NT EMF 1.007 + * NT EMF 1.008 + * TEXT + * XPS2GDI + * + * Implement print processor features like e.g. printing multiple copies. */ + +#include <stdlib.h> + #include "windows.h" #include "winspool.h" #include "ddk/winsplp.h" @@ -26,34 +40,133 @@ WINE_DEFAULT_DEBUG_CHANNEL(winprint); +#define PP_MAGIC 0x952173fd + +struct pp_data +{ + DWORD magic; + HANDLE hport; + WCHAR *doc_name; + WCHAR *out_file; +}; + +static struct pp_data* get_handle_data(HANDLE pp) +{ + struct pp_data *ret = (struct pp_data *)pp; + + if (!ret || ret->magic != PP_MAGIC) + { + SetLastError(ERROR_INVALID_HANDLE); + return NULL; + } + return ret; +} + BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level, BYTE *datatypes, DWORD size, DWORD *needed, DWORD *no) { - FIXME("%s, %s, %ld, %p, %ld, %p, %p\n", debugstr_w(server), debugstr_w(name), + static const WCHAR raw[] = L"RAW"; + + DATATYPES_INFO_1W *info = (DATATYPES_INFO_1W *)datatypes; + + TRACE("%s, %s, %ld, %p, %ld, %p, %p\n", debugstr_w(server), debugstr_w(name), level, datatypes, size, needed, no); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + + if (!needed || !no) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + + *no = 0; + *needed = sizeof(*info) + sizeof(raw); + + if (level != 1 || !datatypes) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + + if (size < *needed) + { + SetLastError(ERROR_INSUFFICIENT_BUFFER); + return FALSE; + } + + *no = 1; + info->pName = (WCHAR*)(info + 1); + memcpy(info + 1, raw, sizeof(raw)); + return TRUE; } HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data) { - FIXME("%s, %p\n", debugstr_w(port), open_data); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return NULL; -} + struct pp_data *data; + HANDLE hport; -BOOL WINAPI ClosePrintProcessor(HANDLE pp) -{ - FIXME("%p\n", pp); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + TRACE("%s, %p\n", debugstr_w(port), open_data); + + if (!port || !open_data || !open_data->pDatatype) + { + SetLastError(ERROR_INVALID_PARAMETER); + return NULL; + } + if (!wcscmp(open_data->pDatatype, L"RAW")) + { + SetLastError(ERROR_INVALID_DATATYPE); + return NULL; + } + + if (!OpenPrinterW(port, &hport, NULL)) + return NULL; + + data = LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT, sizeof(*data)); + if (!data) + return NULL; + data->magic = PP_MAGIC; + data->hport = hport; + data->doc_name = wcsdup(open_data->pDocumentName); + data->out_file = wcsdup(open_data->pOutputFile); + return (HANDLE)data; } BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name) { - FIXME("%p, %s\n", pp, debugstr_w(doc_name)); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + struct pp_data *data = get_handle_data(pp); + HANDLE spool_data; + DOC_INFO_1W info; + BYTE buf[0x1000]; + DWORD r, w; + + TRACE("%p, %s\n", pp, debugstr_w(doc_name)); + + if (!data) + return FALSE; + + if (!OpenPrinterW(doc_name, &spool_data, NULL)) + return FALSE; + + info.pDocName = data->doc_name; + info.pOutputFile = data->out_file; + info.pDatatype = (WCHAR *)L"RAW"; + if (!StartDocPrinterW(data->hport, 1, (BYTE *)&info)) + { + ClosePrinter(spool_data); + return FALSE; + } + + while (ReadPrinter(spool_data, buf, sizeof(buf), &r) && r) + { + if (!WritePrinter(data->hport, buf, r, &w) || r != w) + { + ClosePrinter(spool_data); + EndDocPrinter(data->hport); + return FALSE; + } + } + ClosePrinter(spool_data); + + return EndDocPrinter(data->hport); } BOOL WINAPI ControlPrintProcessor(HANDLE pp, DWORD cmd) @@ -62,3 +175,21 @@ BOOL WINAPI ControlPrintProcessor(HANDLE pp, DWORD cmd) SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } + +BOOL WINAPI ClosePrintProcessor(HANDLE pp) +{ + struct pp_data *data = get_handle_data(pp); + + TRACE("%p\n", pp); + + if (!data) + return FALSE; + + ClosePrinter(data->hport); + free(data->doc_name); + free(data->out_file); + + memset(data, 0, sizeof(*data)); + LocalFree(data); + return TRUE; +}
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
118
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Results per page:
10
25
50
100
200