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
August 2006
----- 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
5 participants
746 discussions
Start a n
N
ew thread
Dan Hipschman : widl: Fix NdrConformantArrayUnmarshall calls in generated code.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: b17d1c14d955fcce557010e5ee1cf777db919d32 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b17d1c14d955fcce557010e…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Aug 15 18:31:14 2006 -0700 widl: Fix NdrConformantArrayUnmarshall calls in generated code. --- tools/widl/proxy.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 3d3e717..642afbe 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -449,8 +449,8 @@ static void unmarshall_copy_arg( var_t * expr = get_attrp( arg->attrs, ATTR_SIZEIS ); if (expr) { - print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name ); - fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index ); + print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name ); + fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index ); return; } @@ -481,8 +481,8 @@ static void unmarshall_copy_arg( var_t * case RPC_FC_C_CSTRING: case RPC_FC_C_WSTRING: case RPC_FC_CARRAY: - print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name ); - fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index ); + print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name ); + fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index ); break; case RPC_FC_BOGUS_STRUCT:
1
0
0
0
Dan Hipschman : widl: Calculate method indices in parser instead of during header generation.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 16d4e712301e4e10159807ec261b321b4a2665d5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=16d4e712301e4e10159807e…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Aug 15 14:23:18 2006 -0700 widl: Calculate method indices in parser instead of during header generation. --- tools/widl/header.c | 12 +++--------- tools/widl/parser.y | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/tools/widl/header.c b/tools/widl/header.c index 6344fb3..0042c63 100644 --- a/tools/widl/header.c +++ b/tools/widl/header.c @@ -572,15 +572,13 @@ const var_t *is_callas(const attr_t *a) return get_attrp(a, ATTR_CALLAS); } -static int write_method_macro(const type_t *iface, const char *name) +static void write_method_macro(const type_t *iface, const char *name) { - int idx; func_t *cur = iface->funcs; - if (iface->ref) idx = write_method_macro(iface->ref, name); - else idx = 0; + if (iface->ref) write_method_macro(iface->ref, name); - if (!cur) return idx; + if (!cur) return; while (NEXT_LINK(cur)) cur = NEXT_LINK(cur); fprintf(header, "/*** %s methods ***/\n", iface->name); @@ -608,13 +606,9 @@ static int write_method_macro(const type for (c=0; c<argc; c++) fprintf(header, ",%c", c+'a'); fprintf(header, ")\n"); - if (cur->idx == -1) cur->idx = idx; - else if (cur->idx != idx) yyerror("BUG: method index mismatch in write_method_macro"); - idx++; } cur = PREV_LINK(cur); } - return idx; } void write_args(FILE *h, var_t *arg, const char *name, int method, int do_indent) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 73ccf25..745056f 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -101,6 +101,8 @@ static void write_clsid(type_t *cls); static void write_diid(type_t *iface); static void write_iid(type_t *iface); +static int compute_method_indexes(type_t *iface); + #define tsENUM 1 #define tsSTRUCT 2 #define tsUNION 3 @@ -711,6 +713,7 @@ dispinterfacedef: dispinterfacehdr '{' } /* FIXME: not sure how to handle this yet | dispinterfacehdr '{' interface '}' { $$ = $1; + compute_method_indexes($$); if (!parse_only && do_header) write_interface($$); if (!parse_only && do_idfile) write_iid($$); } @@ -737,6 +740,7 @@ interfacedef: interfacehdr inherit '{' int_statements '}' { $$ = $1; $$->ref = $2; $$->funcs = $4; + compute_method_indexes($$); if (!parse_only && do_header) write_interface($$); if (!parse_only && do_idfile) write_iid($$); } @@ -747,6 +751,7 @@ interfacedef: interfacehdr inherit $$->ref = find_type2($3, 0); if (!$$->ref) yyerror("base class '%s' not found in import", $3); $$->funcs = $6; + compute_method_indexes($$); if (!parse_only && do_header) write_interface($$); if (!parse_only && do_idfile) write_iid($$); } @@ -1539,3 +1544,26 @@ static void write_iid(type_t *iface) const UUID *uuid = get_attrp(iface->attrs, ATTR_UUID); write_guid(idfile, "IID", iface->name, uuid); } + +static int compute_method_indexes(type_t *iface) +{ + int idx; + func_t *f = iface->funcs; + + if (iface->ref) + idx = compute_method_indexes(iface->ref); + else + idx = 0; + + if (! f) + return idx; + + while (NEXT_LINK(f)) + f = NEXT_LINK(f); + + for ( ; f ; f = PREV_LINK(f)) + if (! is_callas(f->def->attrs)) + f->idx = idx++; + + return idx; +}
1
0
0
0
Robert Reif : secur32: Add GetComputerObjectName tests.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: e86828a072fe70adfd88b8270c696ae1b3cef345 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e86828a072fe70adfd88b82…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Aug 15 19:01:55 2006 -0400 secur32: Add GetComputerObjectName tests. --- dlls/secur32/tests/Makefile.in | 3 +- dlls/secur32/tests/secur32.c | 68 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 dlls/secur32/tests/secur32.c diff --git a/dlls/secur32/tests/Makefile.in b/dlls/secur32/tests/Makefile.in index dfe17a0..8218fa9 100644 --- a/dlls/secur32/tests/Makefile.in +++ b/dlls/secur32/tests/Makefile.in @@ -8,7 +8,8 @@ IMPORTS = crypt32 secur32 advapi32 ker CTESTS = \ main.c \ ntlm.c \ - schannel.c + schannel.c \ + secur32.c @MAKE_TEST_RULES@ diff --git a/dlls/secur32/tests/secur32.c b/dlls/secur32/tests/secur32.c new file mode 100644 index 0000000..5c681cd --- /dev/null +++ b/dlls/secur32/tests/secur32.c @@ -0,0 +1,68 @@ +/* + * tests + * + * Copyright 2006 Robert Reif + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#include <stdio.h> +#include <stdarg.h> +#include <windef.h> +#include <winbase.h> +#define SECURITY_WIN32 +#include <security.h> +#include <schannel.h> + +#include "wine/test.h" + +static void testGetComputerObjectName() +{ + char name[256]; + WCHAR nameW[256]; + ULONG size; + BOOLEAN rc; + int i; + EXTENDED_NAME_FORMAT formats[] = { NameUnknown, NameFullyQualifiedDN, + NameSamCompatible, NameDisplay, NameUniqueId, NameCanonical, + NameUserPrincipal, NameCanonicalEx, NameServicePrincipal, + NameDnsDomain }; + + for (i = 0; i < (sizeof(formats) / sizeof(formats[0])); i++) { + size = sizeof(name); + ZeroMemory(name, sizeof(name)); + rc = GetComputerObjectNameA(formats[i], name, &size); + ok(rc || ((formats[i] == NameUnknown) && + (GetLastError() == ERROR_INVALID_PARAMETER)) || + (GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO), + "GetComputerObjectNameA(%d) failed: %ld\n", + formats[i], GetLastError()); + if (rc) + trace("GetComputerObjectNameA() returned %s\n", name); + + size = sizeof(nameW)/sizeof(nameW[0]); + ZeroMemory(nameW, sizeof(nameW)); + rc = GetComputerObjectNameW(formats[i], nameW, &size); + ok(rc || ((formats[i] == NameUnknown) && + (GetLastError() == ERROR_INVALID_PARAMETER)) || + (GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO), + "GetComputerObjectNameW(%d) failed: %ld\n", + formats[i], GetLastError()); + } +} + +START_TEST(secur32) +{ + testGetComputerObjectName(); +}
1
0
0
0
Robert Reif : secur32: Partial GetComputerObjectName implementation.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 1771a550b8ad0f9c7cdb6483b61aa9c2fe918bfc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=1771a550b8ad0f9c7cdb648…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Aug 15 18:54:23 2006 -0400 secur32: Partial GetComputerObjectName implementation. --- dlls/secur32/secur32.c | 157 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 153 insertions(+), 4 deletions(-) diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c index 6ad2138..a6c12b2 100644 --- a/dlls/secur32/secur32.c +++ b/dlls/secur32/secur32.c @@ -18,6 +18,9 @@ */ #include <assert.h> #include <stdarg.h> + +#include "ntstatus.h" +#define WIN32_NO_STATUS #include "windef.h" #include "winbase.h" #include "winnls.h" @@ -859,12 +862,52 @@ SECURITY_STATUS WINAPI EnumerateSecurity /*********************************************************************** * GetComputerObjectNameA (SECUR32.@) + * + * Get the local computer's name using the format specified. + * + * PARAMS + * NameFormat [I] The format for the name. + * lpNameBuffer [O] Pointer to buffer to receive the name. + * nSize [I/O] Size in characters of buffer. + * + * RETURNS + * TRUE If the name was written to lpNameBuffer. + * FALSE If the name couldn't be written. + * + * NOTES + * If lpNameBuffer is NULL, then the size of the buffer needed to hold the + * name will be returned in *nSize. + * + * nSize returns the number of characters written when lpNameBuffer is not + * NULL or the size of the buffer needed to hold the name when the buffer + * is too short or lpNameBuffer is NULL. + * + * It the buffer is too short, ERROR_INSUFFICIENT_BUFFER error will be set. */ BOOLEAN WINAPI GetComputerObjectNameA( EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize) { - FIXME("%d %p %p\n", NameFormat, lpNameBuffer, nSize); - return FALSE; + BOOLEAN rc; + LPWSTR bufferW = NULL; + ULONG sizeW = *nSize; + TRACE("(%d %p %p)\n", NameFormat, lpNameBuffer, nSize); + if (lpNameBuffer) { + bufferW = HeapAlloc(GetProcessHeap(), 0, sizeW * sizeof(WCHAR)); + if (bufferW == NULL) { + SetLastError(ERROR_NOT_ENOUGH_MEMORY); + return FALSE; + } + } + rc = GetComputerObjectNameW(NameFormat, bufferW, &sizeW); + if (rc && bufferW) { + ULONG len = WideCharToMultiByte(CP_ACP, 0, bufferW, -1, NULL, 0, NULL, NULL); + WideCharToMultiByte(CP_ACP, 0, bufferW, -1, lpNameBuffer, *nSize, NULL, NULL); + *nSize = len; + } + else + *nSize = sizeW; + HeapFree(GetProcessHeap(), 0, bufferW); + return rc; } /*********************************************************************** @@ -873,8 +916,114 @@ BOOLEAN WINAPI GetComputerObjectNameA( BOOLEAN WINAPI GetComputerObjectNameW( EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize) { - FIXME("%d %p %p\n", NameFormat, lpNameBuffer, nSize); - return FALSE; + LSA_HANDLE policyHandle; + LSA_OBJECT_ATTRIBUTES objectAttributes; + PPOLICY_DNS_DOMAIN_INFO domainInfo; + NTSTATUS ntStatus; + BOOLEAN status; + TRACE("(%d %p %p)\n", NameFormat, lpNameBuffer, nSize); + + if (NameFormat == NameUnknown) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + + ZeroMemory(&objectAttributes, sizeof(objectAttributes)); + objectAttributes.Length = sizeof(objectAttributes); + + ntStatus = LsaOpenPolicy(NULL, &objectAttributes, + POLICY_VIEW_LOCAL_INFORMATION, + &policyHandle); + if (ntStatus != STATUS_SUCCESS) + { + SetLastError(LsaNtStatusToWinError(ntStatus)); + WARN("LsaOpenPolicy failed with NT status %lx\n", GetLastError()); + return FALSE; + } + + ntStatus = LsaQueryInformationPolicy(policyHandle, + PolicyDnsDomainInformation, + (PVOID *)&domainInfo); + if (ntStatus != STATUS_SUCCESS) + { + SetLastError(LsaNtStatusToWinError(ntStatus)); + WARN("LsaQueryInformationPolicy failed with NT status %lx\n", + GetLastError()); + LsaClose(policyHandle); + return FALSE; + } + + if (domainInfo->Sid) + { + switch (NameFormat) + { + case NameSamCompatible: + { + WCHAR name[MAX_COMPUTERNAME_LENGTH + 1]; + DWORD size = sizeof(name); + if (GetComputerNameW(name, &size)) + { + int len = domainInfo->Name.Length + size + 3; + if (lpNameBuffer) + { + if (*nSize < len) + { + *nSize = len; + SetLastError(ERROR_INSUFFICIENT_BUFFER); + status = FALSE; + } + else + { + WCHAR bs[] = { '\\', 0 }; + WCHAR ds[] = { '$', 0 }; + lstrcpyW(lpNameBuffer, domainInfo->Name.Buffer); + lstrcatW(lpNameBuffer, bs); + lstrcatW(lpNameBuffer, name); + lstrcatW(lpNameBuffer, ds); + status = TRUE; + } + } + else /* just requesting length required */ + { + *nSize = len; + status = TRUE; + } + } + else + { + SetLastError(ERROR_INTERNAL_ERROR); + status = FALSE; + } + } + break; + case NameFullyQualifiedDN: + case NameDisplay: + case NameUniqueId: + case NameCanonical: + case NameUserPrincipal: + case NameCanonicalEx: + case NameServicePrincipal: + case NameDnsDomain: + FIXME("NameFormat %d not implemented\n", NameFormat); + SetLastError(ERROR_CANT_ACCESS_DOMAIN_INFO); + status = FALSE; + break; + default: + SetLastError(ERROR_INVALID_PARAMETER); + status = FALSE; + } + } + else + { + SetLastError(ERROR_CANT_ACCESS_DOMAIN_INFO); + status = FALSE; + } + + LsaFreeMemory(domainInfo); + LsaClose(policyHandle); + + return status; } BOOLEAN WINAPI GetUserNameExA(
1
0
0
0
Robert Reif : advapi32: Fix LsaQueryInformationPolicy test to pass on NT4.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 6abfc027d5c53ac999a0e09e050ea745ae7683b3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6abfc027d5c53ac999a0e09…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Aug 15 19:05:18 2006 -0400 advapi32: Fix LsaQueryInformationPolicy test to pass on NT4. --- dlls/advapi32/tests/lsa.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c index 31fd802..abc7f59 100644 --- a/dlls/advapi32/tests/lsa.c +++ b/dlls/advapi32/tests/lsa.c @@ -100,8 +100,10 @@ static void test_lsa(void) pLsaFreeMemory((LPVOID)account_domain_info); } + /* This isn't supported in NT4 */ status = pLsaQueryInformationPolicy(handle, PolicyDnsDomainInformation, (PVOID*)&dns_domain_info); - ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08lx\n", status); + ok(status == STATUS_SUCCESS || status == STATUS_INVALID_PARAMETER, + "LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08lx\n", status); if (status == STATUS_SUCCESS) { ok(IsEqualGUID(&dns_domain_info->DomainGuid, &GUID_NULL), "DomainGUID should be GUID_NULL on local computer\n"); ok(dns_domain_info->Sid==0,"Sid should be NULL on the local computer\n");
1
0
0
0
Robert Reif : kernel32: Add GetNativeSystemInfo.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: abdb2dbc66ea6ea75ec44a8a9e48a122f62241b7 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=abdb2dbc66ea6ea75ec44a8…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Aug 15 18:49:06 2006 -0400 kernel32: Add GetNativeSystemInfo. --- dlls/kernel/cpu.c | 10 ++++++++++ dlls/kernel/kernel32.spec | 2 +- include/winbase.h | 1 + 3 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/kernel/cpu.c b/dlls/kernel/cpu.c index b077ad6..eaeac6e 100644 --- a/dlls/kernel/cpu.c +++ b/dlls/kernel/cpu.c @@ -779,6 +779,16 @@ #endif /*********************************************************************** + * GetNativeSystemInfo [KERNEL32.@] + */ +VOID WINAPI GetNativeSystemInfo( + LPSYSTEM_INFO si /* [out] Destination for system information, may not be NULL */) +{ + FIXME("(%p) using GetSystemInfo()\n", si); + GetSystemInfo(si); +} + +/*********************************************************************** * IsProcessorFeaturePresent [KERNEL32.@] * * Determine if the cpu supports a given feature. diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index f3e4dcb..09cfc8b 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -546,7 +546,7 @@ # @ stub GetFirmwareEnvironmentVariableW @ stdcall GetNamedPipeHandleStateA(long ptr ptr ptr ptr str long) @ stdcall GetNamedPipeHandleStateW(long ptr ptr ptr ptr wstr long) @ stdcall GetNamedPipeInfo(long ptr ptr ptr ptr) -# @ stub GetNativeSystemInfo +@ stdcall GetNativeSystemInfo(ptr) @ stub GetNextVDMCommand @ stub GetNlsSectionName # @ stub GetNumaAvailableMemory diff --git a/include/winbase.h b/include/winbase.h index f2165d4..086d194 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1581,6 +1581,7 @@ BOOL WINAPI GetNamedPipeHandleSta BOOL WINAPI GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); #define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState) BOOL WINAPI GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD); +VOID WINAPI GetNativeSystemInfo(LPSYSTEM_INFO); BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD); BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD); BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1
0
0
0
James Hawkins : msi: Add a stub for MsiGetFeatureCost.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 485484deace78519bf7309030400fab0f4d3d2ca URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=485484deace78519bf73090…
Author: James Hawkins <truiken(a)gmail.com> Date: Tue Aug 15 14:56:19 2006 -0700 msi: Add a stub for MsiGetFeatureCost. --- dlls/msi/install.c | 24 ++++++++++++++++++++++++ dlls/msi/msi.spec | 4 ++-- include/msiquery.h | 8 ++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index 249102f..f80f68a 100644 --- a/dlls/msi/install.c +++ b/dlls/msi/install.c @@ -634,6 +634,30 @@ UINT WINAPI MsiGetFeatureStateW(MSIHANDL } /*********************************************************************** +* MsiGetFeatureCostA (MSI.@) +*/ +UINT WINAPI MsiGetFeatureCostA(MSIHANDLE hInstall, LPCSTR szFeature, + MSICOSTTREE iCostTree, INSTALLSTATE iState, INT *piCost) +{ + FIXME("(%ld %s %i %i %p): stub\n", hInstall, debugstr_a(szFeature), + iCostTree, iState, piCost); + if (piCost) *piCost = 0; + return ERROR_SUCCESS; +} + +/*********************************************************************** +* MsiGetFeatureCostW (MSI.@) +*/ +UINT WINAPI MsiGetFeatureCostW(MSIHANDLE hInstall, LPCWSTR szFeature, + MSICOSTTREE iCostTree, INSTALLSTATE iState, INT *piCost) +{ + FIXME("(%ld %s %i %i %p): stub\n", hInstall, debugstr_w(szFeature), + iCostTree, iState, piCost); + if (piCost) *piCost = 0; + return ERROR_SUCCESS; +} + +/*********************************************************************** * MsiSetComponentStateA (MSI.@) */ UINT WINAPI MsiSetComponentStateA(MSIHANDLE hInstall, LPCSTR szComponent, diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec index d718fd2..295ba7b 100644 --- a/dlls/msi/msi.spec +++ b/dlls/msi/msi.spec @@ -46,8 +46,8 @@ 50 stdcall MsiGetComponentStateA(long str ptr ptr) 51 stdcall MsiGetComponentStateW(long wstr ptr ptr) 52 stdcall MsiGetDatabaseState(long) -53 stub MsiGetFeatureCostA -54 stub MsiGetFeatureCostW +53 stdcall MsiGetFeatureCostA(long str long long ptr) +54 stdcall MsiGetFeatureCostW(long wstr long long ptr) 55 stub MsiGetFeatureInfoA 56 stub MsiGetFeatureInfoW 57 stdcall MsiGetFeatureStateA(long str ptr ptr) diff --git a/include/msiquery.h b/include/msiquery.h index ed99b85..57f7577 100644 --- a/include/msiquery.h +++ b/include/msiquery.h @@ -37,6 +37,14 @@ typedef enum tagMSICOLINFO MSICOLINFO_TYPES = 1 } MSICOLINFO; +typedef enum tagMSICOSTTREE +{ + MSICOSTTREE_SELFONLY = 0, + MSICOSTTREE_CHILDREN = 1, + MSICOSTTREE_PARENTS = 2, + MSICOSTTREE_PRODUCT = 3, +} MSICOSTTREE; + typedef enum tagMSIMODIFY { MSIMODIFY_REFRESH = 0,
1
0
0
0
James Hawkins : msi: Use the bare minimum number of parameters for LookupAccountName.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: d4a27358a57ff2f398c63de6c2dc688ed8f06d7b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d4a27358a57ff2f398c63de…
Author: James Hawkins <truiken(a)gmail.com> Date: Tue Aug 15 14:48:11 2006 -0700 msi: Use the bare minimum number of parameters for LookupAccountName. --- dlls/msi/source.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/msi/source.c b/dlls/msi/source.c index ca66c1f..7499429 100644 --- a/dlls/msi/source.c +++ b/dlls/msi/source.c @@ -407,14 +407,15 @@ UINT WINAPI MsiSourceListAddSourceW( LPC INT ret; LPWSTR sidstr = NULL; DWORD sidsize = 0; + DWORD domsize = 0; TRACE("%s %s %s\n", debugstr_w(szProduct), debugstr_w(szUserName), debugstr_w(szSource)); - if (LookupAccountNameW(NULL, szUserName, NULL, &sidsize, NULL, NULL, NULL)) + if (LookupAccountNameW(NULL, szUserName, NULL, &sidsize, NULL, &domsize, NULL)) { PSID psid = msi_alloc(sidsize); - if (LookupAccountNameW(NULL, szUserName, psid, &sidsize, NULL, NULL, NULL)) + if (LookupAccountNameW(NULL, szUserName, psid, &sidsize, NULL, &domsize, NULL)) ConvertSidToStringSidW(psid, &sidstr); msi_free(psid);
1
0
0
0
Andrew Talbot : wineps.drv: Write-strings warnings fix and declare function static.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 398098ab32f836d16f113d7fea314c1eab5650f2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=398098ab32f836d16f113d7…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue Aug 15 21:20:15 2006 +0100 wineps.drv: Write-strings warnings fix and declare function static. --- dlls/wineps.drv/ps.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/wineps.drv/ps.c b/dlls/wineps.drv/ps.c index b27e900..7d6fb7a 100644 --- a/dlls/wineps.drv/ps.c +++ b/dlls/wineps.drv/ps.c @@ -231,8 +231,7 @@ DWORD PSDRV_WriteSpool(PSDRV_PDEVICE *ph } -INT PSDRV_WriteFeature(HANDLE16 hJob, char *feature, char *value, - char *invocation) +static INT PSDRV_WriteFeature(HANDLE16 hJob, LPCSTR feature, LPCSTR value, LPSTR invocation) { char *buf = HeapAlloc( PSDRV_Heap, 0, sizeof(psbeginfeature) +
1
0
0
0
Andrew Talbot : crypt32/tests: Write-strings warning fix.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 318d92b46c5ef5540d00c8df1393e5d3815e96b0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=318d92b46c5ef5540d00c8d…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue Aug 15 19:49:15 2006 +0100 crypt32/tests: Write-strings warning fix. --- dlls/crypt32/tests/oid.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/tests/oid.c b/dlls/crypt32/tests/oid.c index 4be68d8..c5d2689 100644 --- a/dlls/crypt32/tests/oid.c +++ b/dlls/crypt32/tests/oid.c @@ -431,13 +431,14 @@ static void test_enumOIDInfo(void) static void test_findOIDInfo(void) { static const WCHAR sha1[] = { 's','h','a','1',0 }; + static CHAR oid_rsa_md5[] = szOID_RSA_MD5; ALG_ID alg = CALG_SHA1; ALG_ID algs[2] = { CALG_MD5, CALG_RSA_SIGN }; PCCRYPT_OID_INFO info; info = CryptFindOIDInfo(0, NULL, 0); ok(info == NULL, "Expected NULL\n"); - info = CryptFindOIDInfo(CRYPT_OID_INFO_OID_KEY, szOID_RSA_MD5, 0); + info = CryptFindOIDInfo(CRYPT_OID_INFO_OID_KEY, oid_rsa_md5, 0); ok(info != NULL, "Expected to find szOID_RSA_MD5\n"); if (info) {
1
0
0
0
← Newer
1
...
30
31
32
33
34
35
36
...
75
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
Results per page:
10
25
50
100
200