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 2010
----- 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
2 participants
866 discussions
Start a n
N
ew thread
Maarten Lankhorst : winegstreamer: Fix deadlock when changing state.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 096da45036959e57ae3aa5b0de0c06f69c651788 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=096da45036959e57ae3aa5b0d…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Nov 11 23:22:59 2010 +0100 winegstreamer: Fix deadlock when changing state. Leaving the lock is legal and required here since gstreamer has its own locking in place. gst_pad_push could otherwise deadlock. --- dlls/winegstreamer/gsttffilter.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/winegstreamer/gsttffilter.c b/dlls/winegstreamer/gsttffilter.c index a304cc1..912439e 100644 --- a/dlls/winegstreamer/gsttffilter.c +++ b/dlls/winegstreamer/gsttffilter.c @@ -267,7 +267,9 @@ static HRESULT WINAPI Gstreamer_transform_ProcessEnd(TransformFilter *iface) { GstTfImpl *This = (GstTfImpl*)iface; int ret; + LeaveCriticalSection(&This->tf.filter.csFilter); ret = gst_element_set_state(This->filter, GST_STATE_READY); + EnterCriticalSection(&This->tf.filter.csFilter); TRACE("Returned: %i\n", ret); return S_OK; }
1
0
0
0
Maarten Lankhorst : winegstreamer: Bump buffers to 2 in transform filter.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 34d4b5a22746b0bb7dbc7f60dcf23d8428a06b1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34d4b5a22746b0bb7dbc7f60d…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Nov 11 23:22:58 2010 +0100 winegstreamer: Bump buffers to 2 in transform filter. --- dlls/winegstreamer/gsttffilter.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/gsttffilter.c b/dlls/winegstreamer/gsttffilter.c index d3b2922..a304cc1 100644 --- a/dlls/winegstreamer/gsttffilter.c +++ b/dlls/winegstreamer/gsttffilter.c @@ -141,8 +141,8 @@ static HRESULT WINAPI Gstreamer_transform_DecideBufferSize(TransformFilter *tf, ppropInputRequest->cbBuffer = This->cbBuffer; - if (!ppropInputRequest->cBuffers) - ppropInputRequest->cBuffers = 1; + if (ppropInputRequest->cBuffers < 2) + ppropInputRequest->cBuffers = 2; return IMemAllocator_SetProperties(pAlloc, ppropInputRequest, &actual); }
1
0
0
0
Eric Pouech : msvcrt: Use macro for parameters validation itoa_s ( and update the tests as well).
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 9df3f06cb94617474532d99e3e5aa4d665a615c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9df3f06cb94617474532d99e3…
Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Thu Nov 11 22:30:25 2010 +0100 msvcrt: Use macro for parameters validation itoa_s (and update the tests as well). --- dlls/msvcr90/tests/msvcr90.c | 105 ++++++++++++++++++++++++++++++++++++++++++ dlls/msvcrt/string.c | 10 ++-- dlls/msvcrt/tests/string.c | 16 ++++++ 3 files changed, 127 insertions(+), 4 deletions(-) diff --git a/dlls/msvcr90/tests/msvcr90.c b/dlls/msvcr90/tests/msvcr90.c index 5a60871..6b0363f 100644 --- a/dlls/msvcr90/tests/msvcr90.c +++ b/dlls/msvcr90/tests/msvcr90.c @@ -63,6 +63,7 @@ static char **p_sys_errlist; static char** (__cdecl *p__sys_errlist)(void); static __int64 (__cdecl *p_strtoi64)(const char *, char **, int); static unsigned __int64 (__cdecl *p_strtoui64)(const char *, char **, int); +static errno_t (__cdecl *p_itoa_s)(int,char*,size_t,int); static void* (WINAPI *pEncodePointer)(void *); @@ -282,6 +283,108 @@ static void test__strtoi64(void) ok(errno == 0xdeadbeef, "errno = %x\n", errno); } +static void test__itoa_s(void) +{ + errno_t ret; + char buffer[33]; + + if (!p_itoa_s) + { + win_skip("Skipping _itoa_s tests\n"); + return; + } + + if(!p_set_invalid_parameter_handler) { + win_skip("_set_invalid_parameter_handler not found\n"); + return; + } + + /* _itoa_s (on msvcr90) doesn't set errno (in case of errors) while msvcrt does + * as we always set errno in our msvcrt implementation, don't test here that errno + * isn't changed + */ + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(0, NULL, 0, 0); + ok(ret == EINVAL, "Expected _itoa_s to return EINVAL, got %d\n", ret); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(0, buffer, 0, 0); + ok(ret == EINVAL, "Expected _itoa_s to return EINVAL, got %d\n", ret); + ok(buffer[0] == 'X', "Expected the output buffer to be untouched\n"); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(0, buffer, sizeof(buffer), 0); + ok(ret == EINVAL, "Expected _itoa_s to return EINVAL, got %d\n", ret); + ok(buffer[0] == '\0', "Expected the output buffer to be null terminated\n"); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(0, buffer, sizeof(buffer), 64); + ok(ret == EINVAL, "Expected _itoa_s to return EINVAL, got %d\n", ret); + ok(buffer[0] == '\0', "Expected the output buffer to be null terminated\n"); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(12345678, buffer, 4, 10); + ok(ret == ERANGE, "Expected _itoa_s to return ERANGE, got %d\n", ret); + ok(!memcmp(buffer, "\000765", 4), + "Expected the output buffer to be null terminated with truncated output\n"); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(12345678, buffer, 8, 10); + ok(ret == ERANGE, "Expected _itoa_s to return ERANGE, got %d\n", ret); + ok(!memcmp(buffer, "\0007654321", 8), + "Expected the output buffer to be null terminated with truncated output\n"); + CHECK_CALLED(invalid_parameter_handler); + + memset(buffer, 'X', sizeof(buffer)); + SET_EXPECT(invalid_parameter_handler); + ret = p_itoa_s(-12345678, buffer, 9, 10); + ok(ret == ERANGE, "Expected _itoa_s to return ERANGE, got %d\n", ret); + ok(!memcmp(buffer, "\00087654321", 9), + "Expected the output buffer to be null terminated with truncated output\n"); + CHECK_CALLED(invalid_parameter_handler); + + ret = p_itoa_s(12345678, buffer, 9, 10); + ok(ret == 0, "Expected _itoa_s to return 0, got %d\n", ret); + ok(!strcmp(buffer, "12345678"), + "Expected output buffer string to be \"12345678\", got \"%s\"\n", + buffer); + + ret = p_itoa_s(43690, buffer, sizeof(buffer), 2); + ok(ret == 0, "Expected _itoa_s to return 0, got %d\n", ret); + ok(!strcmp(buffer, "1010101010101010"), + "Expected output buffer string to be \"1010101010101010\", got \"%s\"\n", + buffer); + + ret = p_itoa_s(1092009, buffer, sizeof(buffer), 36); + ok(ret == 0, "Expected _itoa_s to return 0, got %d\n", ret); + ok(!strcmp(buffer, "nell"), + "Expected output buffer string to be \"nell\", got \"%s\"\n", + buffer); + + ret = p_itoa_s(5704, buffer, sizeof(buffer), 18); + ok(ret == 0, "Expected _itoa_s to return 0, got %d\n", ret); + ok(!strcmp(buffer, "hag"), + "Expected output buffer string to be \"hag\", got \"%s\"\n", + buffer); + + ret = p_itoa_s(-12345678, buffer, sizeof(buffer), 10); + ok(ret == 0, "Expected _itoa_s to return 0, got %d\n", ret); + ok(!strcmp(buffer, "-12345678"), + "Expected output buffer string to be \"-12345678\", got \"%s\"\n", + buffer); +} + + /* ########## */ START_TEST(msvcr90) @@ -311,6 +414,7 @@ START_TEST(msvcr90) p__sys_errlist = (void *) GetProcAddress(hcrt, "__sys_errlist"); p_strtoi64 = (void *) GetProcAddress(hcrt, "_strtoi64"); p_strtoui64 = (void *) GetProcAddress(hcrt, "_strtoui64"); + p_itoa_s = (void *)GetProcAddress(hcrt, "_itoa_s"); hkernel32 = GetModuleHandleA("kernel32.dll"); pEncodePointer = (void *) GetProcAddress(hkernel32, "EncodePointer"); @@ -319,4 +423,5 @@ START_TEST(msvcr90) test__encode_pointer(); test_error_messages(); test__strtoi64(); + test__itoa_s(); } diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c index 3c4b53c..ea3ca1b 100644 --- a/dlls/msvcrt/string.c +++ b/dlls/msvcrt/string.c @@ -680,7 +680,8 @@ int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix) char buffer[33], *pos; size_t len; - if (!str || !size || radix < 2 || radix > 36) + if (!MSVCRT_CHECK_PMT(str != NULL) || !MSVCRT_CHECK_PMT(size > 0) || + !MSVCRT_CHECK_PMT(radix >= 2) || !MSVCRT_CHECK_PMT(radix <= 36)) { if (str && size) str[0] = '\0'; @@ -737,6 +738,7 @@ int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix) *p++ = *pos--; str[0] = '\0'; + MSVCRT_INVALID_PMT("str[size] is too small"); *MSVCRT__errno() = MSVCRT_ERANGE; return MSVCRT_ERANGE; } @@ -831,8 +833,8 @@ int CDECL MSVCRT__ui64toa_s(unsigned __int64 value, char *str, char buffer[65], *pos; int digit; - if(!str || radix<2 || radix>36) { - MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0); + if (!MSVCRT_CHECK_PMT(str != NULL) || !MSVCRT_CHECK_PMT(size > 0) || + !MSVCRT_CHECK_PMT(radix>=2) || !MSVCRT_CHECK_PMT(radix<=36)) { *MSVCRT__errno() = MSVCRT_EINVAL; return MSVCRT_EINVAL; } @@ -851,7 +853,7 @@ int CDECL MSVCRT__ui64toa_s(unsigned __int64 value, char *str, }while(value != 0); if(buffer-pos+65 > size) { - MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0); + MSVCRT_INVALID_PMT("str[size] is too small"); *MSVCRT__errno() = MSVCRT_EINVAL; return MSVCRT_EINVAL; } diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index ab647db..aa57b31 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -43,6 +43,13 @@ static char *buf_to_string(const unsigned char *bin, int len, int nr) return buf[nr]; } +static void __cdecl test_invalid_parameter_handler(const wchar_t *expression, + const wchar_t *function, const wchar_t *file, + unsigned line, uintptr_t arg) +{ + /* we just ignore handler calls */ +} + #define expect_eq(expr, value, type, format) { type ret = (expr); ok((value) == ret, #expr " expected " format " got " format "\n", value, ret); } #define expect_bin(buf, value, len) { ok(memcmp((buf), value, len) == 0, "Binary buffer mismatch - expected %s, got %s\n", buf_to_string((unsigned char *)value, len, 1), buf_to_string((buf), len, 0)); } @@ -66,6 +73,7 @@ static errno_t (__cdecl *p_strlwr_s)(char*,size_t); static errno_t (__cdecl *p_ultoa_s)(__msvcrt_ulong,char*,size_t,int); static int *p__mb_cur_max; static unsigned char *p_mbctype; +static _invalid_parameter_handler (__cdecl *p_set_invalid_parameter_handler)(_invalid_parameter_handler); #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hMsvcrt,y) #define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y) @@ -1293,6 +1301,10 @@ static void test__itoa_s(void) return; } + if (p_set_invalid_parameter_handler) + ok(p_set_invalid_parameter_handler(test_invalid_parameter_handler) == NULL, + "Invalid parameter handler was already set\n"); + errno = EBADF; ret = p_itoa_s(0, NULL, 0, 0); ok(ret == EINVAL, "Expected _itoa_s to return EINVAL, got %d\n", ret); @@ -1372,6 +1384,9 @@ static void test__itoa_s(void) ok(!strcmp(buffer, "-12345678"), "Expected output buffer string to be \"-12345678\", got \"%s\"\n", buffer); + if (p_set_invalid_parameter_handler) + ok(p_set_invalid_parameter_handler(NULL) == test_invalid_parameter_handler, + "Cannot reset invalid parameter handler\n"); } static void test__strlwr_s(void) @@ -1705,6 +1720,7 @@ START_TEST(string) p_itoa_s = (void *)GetProcAddress(hMsvcrt, "_itoa_s"); p_strlwr_s = (void *)GetProcAddress(hMsvcrt, "_strlwr_s"); p_ultoa_s = (void *)GetProcAddress(hMsvcrt, "_ultoa_s"); + p_set_invalid_parameter_handler = (void *) GetProcAddress(hMsvcrt, "_set_invalid_parameter_handler"); /* MSVCRT memcpy behaves like memmove for overlapping moves, MFC42 CString::Insert seems to rely on that behaviour */
1
0
0
0
Andrew Bogott : shdocvw: Move OpenURL() from shdocvw_main.c into intshcut.c , and implement it.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: be01cdb6bf6306119cf3cde93316374cd8a1059e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=be01cdb6bf6306119cf3cde93…
Author: Andrew Bogott <andrew(a)CodeWeavers.com> Date: Thu Nov 4 17:26:34 2010 -0500 shdocvw: Move OpenURL() from shdocvw_main.c into intshcut.c, and implement it. --- dlls/shdocvw/intshcut.c | 62 +++++++++++++++++++++++++++++++++++++++--- dlls/shdocvw/shdocvw_main.c | 8 ----- 2 files changed, 57 insertions(+), 13 deletions(-) diff --git a/dlls/shdocvw/intshcut.c b/dlls/shdocvw/intshcut.c index 2f1cad8..202a523 100644 --- a/dlls/shdocvw/intshcut.c +++ b/dlls/shdocvw/intshcut.c @@ -27,6 +27,9 @@ * The installer for the Zuma Deluxe Popcap game is good for testing. */ +#include <stdarg.h> +#include <stdio.h> + #include "wine/debug.h" #include "shdocvw.h" #include "objidl.h" @@ -34,6 +37,7 @@ #include "intshcut.h" #include "shellapi.h" #include "winreg.h" +#include "shlwapi.h" WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); @@ -565,6 +569,22 @@ static const IPersistFileVtbl persistFileVtbl = { PersistFile_GetCurFile }; +static InternetShortcut *create_shortcut(void) +{ + InternetShortcut *newshortcut; + + newshortcut = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(InternetShortcut)); + if (newshortcut) + { + newshortcut->uniformResourceLocatorA.lpVtbl = &uniformResourceLocatorAVtbl; + newshortcut->uniformResourceLocatorW.lpVtbl = &uniformResourceLocatorWVtbl; + newshortcut->persistFile.lpVtbl = &persistFileVtbl; + newshortcut->refCount = 0; + } + + return newshortcut; +} + HRESULT InternetShortcut_Create(IUnknown *pOuter, REFIID riid, void **ppv) { InternetShortcut *This; @@ -577,13 +597,9 @@ HRESULT InternetShortcut_Create(IUnknown *pOuter, REFIID riid, void **ppv) if(pOuter) return CLASS_E_NOAGGREGATION; - This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(InternetShortcut)); + This = create_shortcut(); if (This) { - This->uniformResourceLocatorA.lpVtbl = &uniformResourceLocatorAVtbl; - This->uniformResourceLocatorW.lpVtbl = &uniformResourceLocatorWVtbl; - This->persistFile.lpVtbl = &persistFileVtbl; - This->refCount = 0; hr = Unknown_QueryInterface(This, riid, ppv); if (SUCCEEDED(hr)) SHDOCVW_LockModule(); @@ -594,3 +610,39 @@ HRESULT InternetShortcut_Create(IUnknown *pOuter, REFIID riid, void **ppv) else return E_OUTOFMEMORY; } + + +/********************************************************************** + * OpenURL (SHDOCVW.@) + */ +void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd) +{ + InternetShortcut *shortcut; + WCHAR* urlfilepath = NULL; + shortcut = create_shortcut(); + + if (shortcut) + { + int len; + + len = MultiByteToWideChar(CP_ACP, 0, lpcstrUrl, -1, NULL, 0); + urlfilepath = heap_alloc(len * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, lpcstrUrl, -1, urlfilepath, len); + + if(SUCCEEDED(IPersistFile_Load(&shortcut->persistFile, urlfilepath, 0))) + { + URLINVOKECOMMANDINFOW ici; + + memset( &ici, 0, sizeof ici ); + ici.dwcbSize = sizeof ici; + ici.dwFlags = IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB; + ici.hwndParent = hWnd; + + if FAILED(UniformResourceLocatorW_InvokeCommand(&shortcut->uniformResourceLocatorW, (PURLINVOKECOMMANDINFOW) &ici)) + TRACE("failed to open URL: %s\n.",debugstr_a(lpcstrUrl)); + } + + heap_free(shortcut); + heap_free(urlfilepath); + } +} diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c index f0fa0f6..a0070b4 100644 --- a/dlls/shdocvw/shdocvw_main.c +++ b/dlls/shdocvw/shdocvw_main.c @@ -219,14 +219,6 @@ DWORD WINAPI SetQueryNetSessionCount(DWORD arg) } /********************************************************************** - * OpenURL (SHDOCVW.@) - */ -void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd) -{ - FIXME("%p %p %s %d\n", hWnd, hInst, debugstr_a(lpcstrUrl), nShowCmd); -} - -/********************************************************************** * Some forwards (by ordinal) to SHLWAPI */
1
0
0
0
Andrew Bogott : shdocvw: Implement UniformResourceLocatorW_InvokeCommand and UniformResourceLocatorA_InvokeCommand for the default verb .
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 44f929fc25ade04e0f38203fa7c8f6c9ca8f0de8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=44f929fc25ade04e0f38203fa…
Author: Andrew Bogott <andrew(a)CodeWeavers.com> Date: Thu Nov 4 17:25:09 2010 -0500 shdocvw: Implement UniformResourceLocatorW_InvokeCommand and UniformResourceLocatorA_InvokeCommand for the default verb. --- dlls/shdocvw/intshcut.c | 67 ++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 63 insertions(+), 4 deletions(-) diff --git a/dlls/shdocvw/intshcut.c b/dlls/shdocvw/intshcut.c index 8c17873..2f1cad8 100644 --- a/dlls/shdocvw/intshcut.c +++ b/dlls/shdocvw/intshcut.c @@ -32,6 +32,8 @@ #include "objidl.h" #include "shobjidl.h" #include "intshcut.h" +#include "shellapi.h" +#include "winreg.h" WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); @@ -237,8 +239,47 @@ static HRESULT WINAPI UniformResourceLocatorW_GetUrl(IUniformResourceLocatorW *u static HRESULT WINAPI UniformResourceLocatorW_InvokeCommand(IUniformResourceLocatorW *url, PURLINVOKECOMMANDINFOW pCommandInfo) { - FIXME("(%p, %p): stub\n", url, pCommandInfo); - return E_NOTIMPL; + InternetShortcut *This = impl_from_IUniformResourceLocatorW(url); + WCHAR app[64]; + HKEY hkey; + static const WCHAR wszURLProtocol[] = {'U','R','L',' ','P','r','o','t','o','c','o','l',0}; + SHELLEXECUTEINFOW sei; + DWORD res, type; + HRESULT hres; + + TRACE("%p %p\n", This, pCommandInfo ); + + if (pCommandInfo->dwcbSize < sizeof (URLINVOKECOMMANDINFOW)) + return E_INVALIDARG; + + if (pCommandInfo->dwFlags != IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB) + { + FIXME("(%p, %p): non-default verbs not implemented\n", url, pCommandInfo); + return E_NOTIMPL; + } + + hres = CoInternetParseUrl(This->url, PARSE_SCHEMA, 0, app, sizeof(app)/sizeof(WCHAR), NULL, 0); + if(FAILED(hres)) + return E_FAIL; + + res = RegOpenKeyW(HKEY_CLASSES_ROOT, app, &hkey); + if(res != ERROR_SUCCESS) + return E_FAIL; + + res = RegQueryValueExW(hkey, wszURLProtocol, NULL, &type, NULL, NULL); + RegCloseKey(hkey); + if(res != ERROR_SUCCESS || type != REG_SZ) + return E_FAIL; + + memset(&sei, 0, sizeof(sei)); + sei.cbSize = sizeof(sei); + sei.lpFile = This->url; + sei.nShow = SW_SHOW; + + if( ShellExecuteExW(&sei) ) + return S_OK; + else + return E_FAIL; } static HRESULT WINAPI UniformResourceLocatorA_QueryInterface(IUniformResourceLocatorA *url, REFIID riid, PVOID *ppvObject) @@ -299,8 +340,26 @@ static HRESULT WINAPI UniformResourceLocatorA_GetUrl(IUniformResourceLocatorA *u static HRESULT WINAPI UniformResourceLocatorA_InvokeCommand(IUniformResourceLocatorA *url, PURLINVOKECOMMANDINFOA pCommandInfo) { - FIXME("(%p, %p): stub\n", url, pCommandInfo); - return E_NOTIMPL; + URLINVOKECOMMANDINFOW wideCommandInfo; + int len; + WCHAR *wideVerb; + HRESULT res; + InternetShortcut *This = impl_from_IUniformResourceLocatorA(url); + + wideCommandInfo.dwcbSize = sizeof wideCommandInfo; + wideCommandInfo.dwFlags = pCommandInfo->dwFlags; + wideCommandInfo.hwndParent = pCommandInfo->hwndParent; + + len = MultiByteToWideChar(CP_ACP, 0, pCommandInfo->pcszVerb, -1, NULL, 0); + wideVerb = heap_alloc(len * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, pCommandInfo->pcszVerb, -1, wideVerb, len); + + wideCommandInfo.pcszVerb = wideVerb; + + res = UniformResourceLocatorW_InvokeCommand(&This->uniformResourceLocatorW, &wideCommandInfo); + heap_free(wideVerb); + + return res; } static HRESULT WINAPI PersistFile_QueryInterface(IPersistFile *pFile, REFIID riid, PVOID *ppvObject)
1
0
0
0
André Hentschel : d3d9: Improve CheckDeviceState stub to run Firefox 4 Beta 7.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: ce0e1f07dc597fd157b914baa70588423b7eb6c6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce0e1f07dc597fd157b914baa…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Thu Nov 11 20:35:20 2010 +0100 d3d9: Improve CheckDeviceState stub to run Firefox 4 Beta 7. --- dlls/d3d9/device.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index b097ece..1c2aa99 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -2790,9 +2790,14 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_GetMaximumFrameLatency(IDirect3DDev static HRESULT WINAPI IDirect3DDevice9ExImpl_CheckDeviceState(IDirect3DDevice9Ex *iface, HWND dst_window) { - FIXME("iface %p, dst_window %p stub!\n", iface, dst_window); + static int i; - return WINED3DERR_INVALIDCALL; + TRACE("iface %p, dst_window %p stub!\n", iface, dst_window); + + if (!i++) + FIXME("iface %p, dst_window %p stub!\n", iface, dst_window); + + return WINED3D_OK; } static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateRenderTargetEx(IDirect3DDevice9Ex *iface,
1
0
0
0
Alexandre Julliard : atl: Fix the Registrar class factory implementation.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 696b83259f3fdf0e767d8da2c204537028cf7992 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=696b83259f3fdf0e767d8da2c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 12 11:55:28 2010 +0100 atl: Fix the Registrar class factory implementation. --- dlls/atl/registrar.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c index a54860f..c9d7e6c 100644 --- a/dlls/atl/registrar.c +++ b/dlls/atl/registrar.c @@ -687,8 +687,9 @@ static HRESULT WINAPI RegistrarCF_QueryInterface(IClassFactory *iface, REFIID ri { TRACE("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppvObject); - if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IRegistrar, riid)) { + if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IClassFactory, riid)) { *ppvObject = iface; + IClassFactory_AddRef( iface ); return S_OK; } @@ -743,10 +744,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject) { TRACE("(%s %s %p)\n", debugstr_guid(clsid), debugstr_guid(riid), ppvObject); - if(IsEqualGUID(&CLSID_Registrar, clsid)) { - *ppvObject = &RegistrarCF; - return S_OK; - } + if(IsEqualGUID(&CLSID_Registrar, clsid)) + return IClassFactory_QueryInterface( &RegistrarCF, riid, ppvObject ); FIXME("Not supported class %s\n", debugstr_guid(clsid)); return CLASS_E_CLASSNOTAVAILABLE;
1
0
0
0
Alexandre Julliard : atl: Fix the name of the Registrar class id.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 9c4432f69d91007d02c52c50ba565ca795f44765 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c4432f69d91007d02c52c50b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 12 11:49:44 2010 +0100 atl: Fix the name of the Registrar class id. --- dlls/atl/atl.rgs | 4 ++-- dlls/atl/registrar.c | 10 +++++----- include/atliface.idl | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/atl/atl.rgs b/dlls/atl/atl.rgs index 8b1d476..ee43249 100644 --- a/dlls/atl/atl.rgs +++ b/dlls/atl/atl.rgs @@ -2,10 +2,10 @@ HKCR { ATL.Registrar = s 'Registrar Class' { - CLSID = s '%CLSID_ATLRegistrar%' + CLSID = s '%CLSID_Registrar%' } NoRemove CLSID { - ForceRemove '%CLSID_ATLRegistrar%' = s 'Registrar Class' + ForceRemove '%CLSID_Registrar%' = s 'Registrar Class' { ProgID = s 'ATL.Registrar' InprocServer32 = s '%MODULE%' diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c index 7076e35..a54860f 100644 --- a/dlls/atl/registrar.c +++ b/dlls/atl/registrar.c @@ -743,7 +743,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject) { TRACE("(%s %s %p)\n", debugstr_guid(clsid), debugstr_guid(riid), ppvObject); - if(IsEqualGUID(&CLSID_ATLRegistrar, clsid)) { + if(IsEqualGUID(&CLSID_Registrar, clsid)) { *ppvObject = &RegistrarCF; return S_OK; } @@ -787,14 +787,14 @@ static HRESULT do_register_dll_server(IRegistrar *pRegistrar, LPCOLESTR wszDll, static HRESULT do_register_server(BOOL do_register) { - static const WCHAR CLSID_ATLRegistrarW[] = - {'C','L','S','I','D','_','A','T','L','R','e','g','i','s','t','r','a','r',0}; + static const WCHAR CLSID_RegistrarW[] = + {'C','L','S','I','D','_','R','e','g','i','s','t','r','a','r',0}; static const WCHAR atl_dllW[] = {'a','t','l','.','d','l','l',0}; WCHAR clsid_str[40]; - const struct _ATL_REGMAP_ENTRY reg_map[] = {{CLSID_ATLRegistrarW, clsid_str}, {NULL,NULL}}; + const struct _ATL_REGMAP_ENTRY reg_map[] = {{CLSID_RegistrarW, clsid_str}, {NULL,NULL}}; - StringFromGUID2(&CLSID_ATLRegistrar, clsid_str, sizeof(clsid_str)/sizeof(WCHAR)); + StringFromGUID2(&CLSID_Registrar, clsid_str, sizeof(clsid_str)/sizeof(WCHAR)); return do_register_dll_server(NULL, atl_dllW, MAKEINTRESOURCEW(101), do_register, reg_map); } diff --git a/include/atliface.idl b/include/atliface.idl index f71bc3a..887338f 100644 --- a/include/atliface.idl +++ b/include/atliface.idl @@ -68,7 +68,7 @@ interface IRegistrar : IUnknown [in] LPCOLESTR szType); } -cpp_quote("DEFINE_GUID(CLSID_ATLRegistrar,0x44ec053a,0x400f,0x11d0,0x9d,0xcd,0x00,0xa0,0xc9,0x03,0x91,0xd3);") +cpp_quote("DEFINE_GUID(CLSID_Registrar,0x44ec053a,0x400f,0x11d0,0x9d,0xcd,0x00,0xa0,0xc9,0x03,0x91,0xd3);") cpp_quote("HRESULT WINAPI AtlAxCreateControl(LPCOLESTR,HWND,IStream*,IUnknown**);") cpp_quote("HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR,HWND,IStream*,IUnknown**,IUnknown**,REFIID,IUnknown*);")
1
0
0
0
Alexandre Julliard : atl: Move atliface.idl to the global includes.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: 32ad286d06998b3dfa09bb7a5bc2be21d9c633b3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32ad286d06998b3dfa09bb7a5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 12 11:47:19 2010 +0100 atl: Move atliface.idl to the global includes. --- .gitignore | 2 +- dlls/atl/Makefile.in | 3 --- include/Makefile.in | 1 + {dlls/atl => include}/atliface.idl | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a340baf..6085e68 100644 --- a/.gitignore +++ b/.gitignore @@ -43,7 +43,6 @@ dlls/actxprxy/actxprxy_urlhist.h dlls/actxprxy/actxprxy_urlhist_p.c dlls/advapi32/svcctl.h dlls/advapi32/svcctl_c.c -dlls/atl/atliface.h dlls/d3dcompiler_43/asmshader.tab.c dlls/d3dcompiler_43/asmshader.tab.h dlls/d3dcompiler_43/asmshader.yy.c @@ -150,6 +149,7 @@ include/activscp.h include/amstream.h include/amvideo.h include/asptlb.h +include/atliface.h include/audioclient.h include/audiopolicy.h include/austream.h diff --git a/dlls/atl/Makefile.in b/dlls/atl/Makefile.in index 05de265..a631ed8 100644 --- a/dlls/atl/Makefile.in +++ b/dlls/atl/Makefile.in @@ -9,7 +9,4 @@ C_SRCS = \ RC_SRCS = rsrc.rc -IDL_H_SRCS = \ - atliface.idl - @MAKE_DLL_RULES@ diff --git a/include/Makefile.in b/include/Makefile.in index 3f4f9de..e7c75ee 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -9,6 +9,7 @@ PUBLIC_IDL_H_SRCS = \ amstream.idl \ amvideo.idl \ asptlb.idl \ + atliface.idl \ audioclient.idl \ audiopolicy.idl \ austream.idl \ diff --git a/dlls/atl/atliface.idl b/include/atliface.idl similarity index 98% rename from dlls/atl/atliface.idl rename to include/atliface.idl index ef3e5e5..f71bc3a 100644 --- a/dlls/atl/atliface.idl +++ b/include/atliface.idl @@ -19,7 +19,7 @@ import "ocidl.idl"; cpp_quote("#ifdef ATL_INITGUID") -cpp_quote("#include \"initguid.h\"") +cpp_quote("#include <initguid.h>") cpp_quote("#endif") [
1
0
0
0
Austin Lund : comctl32/tests: Fixed rebar layout tests that depend on system font widths.
by Alexandre Julliard
12 Nov '10
12 Nov '10
Module: wine Branch: master Commit: a4a60568a443020e2916a19c6164e7c11b9363b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a4a60568a443020e2916a19c6…
Author: Austin Lund <austin.lund(a)gmail.com> Date: Fri Nov 12 08:26:28 2010 +1000 comctl32/tests: Fixed rebar layout tests that depend on system font widths. --- dlls/comctl32/tests/rebar.c | 83 ++++++++++++++++++++++++------------------ 1 files changed, 47 insertions(+), 36 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a4a60568a443020e2916a…
1
0
0
0
← Newer
1
...
40
41
42
43
44
45
46
...
87
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
Results per page:
10
25
50
100
200