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
July 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
857 discussions
Start a n
N
ew thread
Mike McCormack : msi: Always load all the components.
by Alexandre Julliard
26 Jul '06
26 Jul '06
Module: wine Branch: refs/heads/master Commit: 1d46cdf11af912f4ec1b4f390fc1844605be2ce5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=1d46cdf11af912f4ec1b4f3…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jul 25 21:49:44 2006 +0900 msi: Always load all the components. --- dlls/msi/action.c | 141 ++++++++++++++++++++++------------------------ dlls/msi/tests/install.c | 5 -- dlls/msi/tests/package.c | 2 - 3 files changed, 68 insertions(+), 80 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 2479f2e..f7454c2 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -1095,13 +1095,16 @@ static UINT ACTION_CreateFolders(MSIPACK return rc; } -static MSICOMPONENT* load_component( MSIRECORD * row ) +static UINT load_component( MSIRECORD *row, LPVOID param ) { + MSIPACKAGE *package = param; MSICOMPONENT *comp; comp = msi_alloc_zero( sizeof(MSICOMPONENT) ); if (!comp) - return comp; + return ERROR_FUNCTION_FAILED; + + list_add_tail( &package->components, &comp->entry ); /* fill in the data */ comp->Component = msi_dup_record_field( row, 1 ); @@ -1118,26 +1121,41 @@ static MSICOMPONENT* load_component( MSI switch (comp->Attributes) { - case msidbComponentAttributesLocalOnly: - comp->Action = INSTALLSTATE_LOCAL; - comp->ActionRequest = INSTALLSTATE_LOCAL; - break; - case msidbComponentAttributesSourceOnly: - comp->Action = INSTALLSTATE_SOURCE; - comp->ActionRequest = INSTALLSTATE_SOURCE; - break; - case msidbComponentAttributesOptional: - comp->Action = INSTALLSTATE_LOCAL; - comp->ActionRequest = INSTALLSTATE_LOCAL; - break; - default: - comp->Action = INSTALLSTATE_UNKNOWN; - comp->ActionRequest = INSTALLSTATE_UNKNOWN; + case msidbComponentAttributesLocalOnly: + case msidbComponentAttributesOptional: + comp->Action = INSTALLSTATE_LOCAL; + comp->ActionRequest = INSTALLSTATE_LOCAL; + break; + case msidbComponentAttributesSourceOnly: + comp->Action = INSTALLSTATE_SOURCE; + comp->ActionRequest = INSTALLSTATE_SOURCE; + break; + default: + comp->Action = INSTALLSTATE_UNKNOWN; + comp->ActionRequest = INSTALLSTATE_UNKNOWN; } - comp->Enabled = TRUE; + return ERROR_SUCCESS; +} + +static UINT load_all_components( MSIPACKAGE *package ) +{ + static const WCHAR query[] = { + 'S','E','L','E','C','T',' ','*',' ','F','R', 'O','M',' ', + '`','C','o','m','p','o','n','e','n','t','`',0 }; + MSIQUERY *view; + UINT r; + + if (!list_empty(&package->components)) + return ERROR_SUCCESS; - return comp; + r = MSI_DatabaseOpenViewW( package->db, query, &view ); + if (r != ERROR_SUCCESS) + return r; + + r = MSI_IterateRecords(view, NULL, load_component, package); + msiobj_release(&view->hdr); + return r; } typedef struct { @@ -1158,56 +1176,24 @@ static UINT add_feature_component( MSIFE return ERROR_SUCCESS; } -static UINT iterate_component_check( MSIRECORD *row, LPVOID param ) -{ - _ilfs* ilfs= (_ilfs*)param; - MSIPACKAGE *package = ilfs->package; - MSIFEATURE *feature = ilfs->feature; - MSICOMPONENT *comp; - - comp = load_component( row ); - if (!comp) - return ERROR_FUNCTION_FAILED; - - list_add_tail( &package->components, &comp->entry ); - add_feature_component( feature, comp ); - - TRACE("Loaded new component %p\n", comp); - - return ERROR_SUCCESS; -} - static UINT iterate_load_featurecomponents(MSIRECORD *row, LPVOID param) { _ilfs* ilfs= (_ilfs*)param; LPCWSTR component; - DWORD rc; MSICOMPONENT *comp; - MSIQUERY * view; - static const WCHAR Query[] = - {'S','E','L','E','C','T',' ','*',' ','F','R', 'O','M',' ', - '`','C','o','m','p','o','n','e','n','t','`',' ', - 'W','H','E','R','E',' ', - '`','C','o','m','p','o','n','e','n','t','`',' ', - '=','\'','%','s','\'',0}; component = MSI_RecordGetString(row,1); /* check to see if the component is already loaded */ comp = get_loaded_component( ilfs->package, component ); - if (comp) + if (!comp) { - TRACE("Component %s already loaded\n", debugstr_w(component) ); - add_feature_component( ilfs->feature, comp ); - return ERROR_SUCCESS; + ERR("unknown component %s\n", debugstr_w(component)); + return ERROR_FUNCTION_FAILED; } - rc = MSI_OpenQuery(ilfs->package->db, &view, Query, component); - if (rc != ERROR_SUCCESS) - return ERROR_SUCCESS; - - rc = MSI_IterateRecords(view, NULL, iterate_component_check, ilfs); - msiobj_release( &view->hdr ); + add_feature_component( ilfs->feature, comp ); + comp->Enabled = TRUE; return ERROR_SUCCESS; } @@ -1271,6 +1257,27 @@ static UINT load_feature(MSIRECORD * row return ERROR_SUCCESS; } +static UINT load_all_features( MSIPACKAGE *package ) +{ + static const WCHAR query[] = { + 'S','E','L','E','C','T',' ','*',' ', 'F','R','O','M',' ', + '`','F','e','a','t','u','r','e','`',' ','O','R','D','E','R', + ' ','B','Y',' ','`','D','i','s','p','l','a','y','`',0}; + MSIQUERY *view; + UINT r; + + if (!list_empty(&package->features)) + return ERROR_SUCCESS; + + r = MSI_DatabaseOpenViewW( package->db, query, &view ); + if (r != ERROR_SUCCESS) + return r; + + r = MSI_IterateRecords( view, NULL, load_feature, package ); + msiobj_release( &view->hdr ); + return r; +} + static LPWSTR folder_split_path(LPWSTR p, WCHAR ch) { if (!p) @@ -1361,12 +1368,6 @@ static UINT load_all_files(MSIPACKAGE *p */ static UINT ACTION_CostInitialize(MSIPACKAGE *package) { - MSIQUERY * view; - UINT rc; - static const WCHAR Query_all[] = - {'S','E','L','E','C','T',' ','*',' ', 'F','R','O','M',' ', - '`','F','e','a','t','u','r','e','`',' ','O','R','D','E','R', - ' ','B','Y',' ','`','D','i','s','p','l','a','y','`',0}; static const WCHAR szCosting[] = {'C','o','s','t','i','n','g','C','o','m','p','l','e','t','e',0 }; static const WCHAR szZero[] = { '0', 0 }; @@ -1375,19 +1376,11 @@ static UINT ACTION_CostInitialize(MSIPAC return ERROR_SUCCESS; MSI_SetPropertyW(package, szCosting, szZero); - MSI_SetPropertyW(package, cszRootDrive , c_colon); - - rc = MSI_DatabaseOpenViewW(package->db,Query_all,&view); - if (rc != ERROR_SUCCESS) - return rc; - - if (list_empty(&package->features)) - { - rc = MSI_IterateRecords(view, NULL, load_feature, package); - msiobj_release(&view->hdr); - } + MSI_SetPropertyW(package, cszRootDrive, c_colon); - load_all_files(package); + load_all_components( package ); + load_all_features( package ); + load_all_files( package ); return ERROR_SUCCESS; } diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index dfd469b..8792629 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -661,10 +661,7 @@ static void test_MsiSetComponentState(vo ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); r = MsiDoAction(package, "CostInitialize"); - todo_wine - { - ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); - } + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); r = MsiDoAction(package, "FileCost"); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index d44d981..f375260 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -315,10 +315,8 @@ static void test_getsourcepath( void ) r = MsiGetSourcePath( hpkg, "TARGETDIR", buffer, &sz ); ok( r == ERROR_DIRECTORY, "return value wrong\n"); - todo_wine { r = MsiDoAction( hpkg, "CostInitialize"); ok( r == ERROR_SUCCESS, "cost init failed\n"); - } r = MsiDoAction( hpkg, "CostFinalize"); ok( r == ERROR_SUCCESS, "cost finalize failed\n");
1
0
0
0
Robert Shearman : dbghelp: Implement SymGetSymFromAddr64.
by Alexandre Julliard
26 Jul '06
26 Jul '06
Module: wine Branch: refs/heads/master Commit: 5c8b22f385b8b87116294cf6f8cdabc5c779d01a URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5c8b22f385b8b87116294cf…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Tue Jul 25 10:35:49 2006 +0100 dbghelp: Implement SymGetSymFromAddr64. --- dlls/dbghelp/dbghelp.spec | 2 +- dlls/dbghelp/symbol.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletions(-) diff --git a/dlls/dbghelp/dbghelp.spec b/dlls/dbghelp/dbghelp.spec index ca688ee..8457a35 100644 --- a/dlls/dbghelp/dbghelp.spec +++ b/dlls/dbghelp/dbghelp.spec @@ -99,7 +99,7 @@ @ stub SymGetSourceVarFromToken @ stub SymGetSourceVarFromTokenW @ stdcall SymGetSymFromAddr(long long ptr ptr) -@ stub SymGetSymFromAddr64 +@ stdcall SymGetSymFromAddr64(long long long ptr ptr) @ stdcall SymGetSymFromName(long str ptr) @ stub SymGetSymFromName64 @ stdcall SymGetSymNext(long ptr) diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c index 2d1e4ed..d93bdd2 100644 --- a/dlls/dbghelp/symbol.c +++ b/dlls/dbghelp/symbol.c @@ -1046,6 +1046,34 @@ BOOL WINAPI SymGetSymFromAddr(HANDLE hPr return TRUE; } +/****************************************************************** + * SymGetSymFromAddr64 (DBGHELP.@) + * + */ +BOOL WINAPI SymGetSymFromAddr64(HANDLE hProcess, DWORD64 Address, + PDWORD64 Displacement, PIMAGEHLP_SYMBOL64 Symbol) +{ + char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME]; + SYMBOL_INFO*si = (SYMBOL_INFO*)buffer; + size_t len; + DWORD64 Displacement64; + + if (Symbol->SizeOfStruct < sizeof(*Symbol)) return FALSE; + si->SizeOfStruct = sizeof(*si); + si->MaxNameLen = MAX_SYM_NAME; + if (!SymFromAddr(hProcess, Address, &Displacement64, si)) + return FALSE; + + if (Displacement) + *Displacement = Displacement64; + Symbol->Address = si->Address; + Symbol->Size = si->Size; + Symbol->Flags = si->Flags; + len = min(Symbol->MaxNameLength, si->MaxNameLen); + lstrcpynA(Symbol->Name, si->Name, len); + return TRUE; +} + static BOOL find_name(struct process* pcs, struct module* module, const char* name, SYMBOL_INFO* symbol) {
1
0
0
0
Robert Shearman : configure: Add a check for the DGifOpen function in the gif_lib. h header as the v4 of the file does define it, while v3 doesn't.
by Alexandre Julliard
26 Jul '06
26 Jul '06
Module: wine Branch: refs/heads/master Commit: 68249c10df19541dc2ea62b4b3654426184763dd URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=68249c10df19541dc2ea62b…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Tue Jul 25 10:36:06 2006 +0100 configure: Add a check for the DGifOpen function in the gif_lib.h header as the v4 of the file does define it, while v3 doesn't. --- configure | 67 ++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 8 +++++ dlls/oleaut32/olepicture.c | 6 ++-- include/config.h.in | 3 ++ 4 files changed, 81 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 5463ff9..0e61520 100755 --- a/configure +++ b/configure @@ -14947,6 +14947,73 @@ fi fi +if test "$ac_cv_header_gif_lib_h" = "yes" +then + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <gif_lib.h> +int +main () +{ +static typeof(DGifOpen) * func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GIF 1 +_ACEOF + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + EXTRACFLAGS="" if test "x${GCC}" = "xyes" diff --git a/configure.ac b/configure.ac index 426389d..70185a8 100644 --- a/configure.ac +++ b/configure.ac @@ -880,6 +880,14 @@ then AC_CHECK_LIB(capi20,capi20_register,[AC_DEFINE(HAVE_CAPI4LINUX,1,[Define if you have capi4linux libs and headers])]) fi +dnl **** Check for gif header usability **** + +if test "$ac_cv_header_gif_lib_h" = "yes" +then + AC_TRY_COMPILE([#include <gif_lib.h>],[static typeof(DGifOpen) * func;], + AC_DEFINE(HAVE_GIF, 1, [Define if you have usable GIF headers])) +fi + dnl **** Check for gcc specific options **** AC_SUBST(EXTRACFLAGS,"") diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 2349b31..a72919e 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -993,7 +993,7 @@ static boolean _jpeg_resync_to_restart(j static void _jpeg_term_source(j_decompress_ptr cinfo) { } #endif /* HAVE_JPEGLIB_H */ -#ifdef HAVE_GIF_LIB_H +#ifdef HAVE_GIF static void *libungif_handle; #define MAKE_FUNCPTR(f) static typeof(f) * p##f @@ -1040,12 +1040,12 @@ static int _gif_inputfunc(GifFileType *g return len; } -#endif /* HAVE_GIF_LIB_H */ +#endif /* HAVE_GIF */ static HRESULT OLEPictureImpl_LoadGif(OLEPictureImpl *This, BYTE *xbuf, ULONG xread) { -#ifdef HAVE_GIF_LIB_H +#ifdef HAVE_GIF struct gifdata gd; GifFileType *gif; BITMAPINFO *bmi; diff --git a/include/config.h.in b/include/config.h.in index 48c047d..50b64ef 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -212,6 +212,9 @@ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID +/* Define if you have usable GIF headers */ +#undef HAVE_GIF + /* Define to 1 if you have the <gif_lib.h> header file. */ #undef HAVE_GIF_LIB_H
1
0
0
0
Stefan Siebert : comdlg32: GetOpenFileNameW - Create unicode windows.
by Alexandre Julliard
26 Jul '06
26 Jul '06
Module: wine Branch: refs/heads/master Commit: bb310d5486855004f2dba0b39c8c5e80c7cb711f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=bb310d5486855004f2dba0b…
Author: Stefan Siebert <stefan.siebert(a)web.de> Date: Mon Jul 24 14:45:32 2006 +0200 comdlg32: GetOpenFileNameW - Create unicode windows. --- dlls/comdlg32/filedlg.c | 47 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 33 insertions(+), 14 deletions(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index 37ce6c2..6a780f1 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -261,7 +261,7 @@ static BOOL WINAPI GetFileName95(FileOpe /* Create the dialog from a template */ - if(!(hRes = FindResourceA(COMDLG32_hInstance,MAKEINTRESOURCEA(NEWFILEOPENORD),(LPSTR)RT_DIALOG))) + if(!(hRes = FindResourceW(COMDLG32_hInstance,MAKEINTRESOURCEW(NEWFILEOPENORD),(LPCWSTR)RT_DIALOG))) { COMDLG32_SetCommDlgExtendedError(CDERR_FINDRESFAILURE); return FALSE; @@ -285,11 +285,18 @@ static BOOL WINAPI GetFileName95(FileOpe /* Some shell namespace extensions depend on COM being initialized. */ hr = OleInitialize(NULL); - lRes = DialogBoxIndirectParamA(COMDLG32_hInstance, - (LPDLGTEMPLATEA) template, - fodInfos->ofnInfos->hwndOwner, - FileOpenDlgProc95, - (LPARAM) fodInfos); + if (fodInfos->unicode) + lRes = DialogBoxIndirectParamW(COMDLG32_hInstance, + template, + fodInfos->ofnInfos->hwndOwner, + FileOpenDlgProc95, + (LPARAM) fodInfos); + else + lRes = DialogBoxIndirectParamA(COMDLG32_hInstance, + (LPDLGTEMPLATEA) template, + fodInfos->ofnInfos->hwndOwner, + FileOpenDlgProc95, + (LPARAM) fodInfos); if (SUCCEEDED(hr)) OleUninitialize(); @@ -771,9 +778,14 @@ static HWND CreateTemplateDialog(FileOpe return NULL; } } - hChildDlg = CreateDialogIndirectParamA(hinst, template, hwnd, - IsHooked(fodInfos) ? (DLGPROC)fodInfos->ofnInfos->lpfnHook : FileOpenDlgProcUserTemplate, - (LPARAM)fodInfos->ofnInfos); + if (fodInfos->unicode) + hChildDlg = CreateDialogIndirectParamW(hinst, template, hwnd, + IsHooked(fodInfos) ? (DLGPROC)fodInfos->ofnInfos->lpfnHook : FileOpenDlgProcUserTemplate, + (LPARAM)fodInfos->ofnInfos); + else + hChildDlg = CreateDialogIndirectParamA(hinst, template, hwnd, + IsHooked(fodInfos) ? (DLGPROC)fodInfos->ofnInfos->lpfnHook : FileOpenDlgProcUserTemplate, + (LPARAM)fodInfos->ofnInfos); if(hChildDlg) { ShowWindow(hChildDlg,SW_SHOW); @@ -1197,11 +1209,18 @@ static LRESULT FILEDLG95_InitControls(HW rectTB.left = rectlook.right; rectTB.top = rectlook.top-1; - fodInfos->DlgInfos.hwndTB = CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, - WS_CHILD | WS_GROUP | WS_VISIBLE | WS_CLIPSIBLINGS | TBSTYLE_TOOLTIPS | CCS_NODIVIDER | CCS_NORESIZE, - rectTB.left, rectTB.top, - rectTB.right - rectTB.left, rectTB.bottom - rectTB.top, - hwnd, (HMENU)IDC_TOOLBAR, COMDLG32_hInstance, NULL); + if (fodInfos->unicode) + fodInfos->DlgInfos.hwndTB = CreateWindowExW(0, TOOLBARCLASSNAMEW, NULL, + WS_CHILD | WS_GROUP | WS_VISIBLE | WS_CLIPSIBLINGS | TBSTYLE_TOOLTIPS | CCS_NODIVIDER | CCS_NORESIZE, + rectTB.left, rectTB.top, + rectTB.right - rectTB.left, rectTB.bottom - rectTB.top, + hwnd, (HMENU)IDC_TOOLBAR, COMDLG32_hInstance, NULL); + else + fodInfos->DlgInfos.hwndTB = CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, + WS_CHILD | WS_GROUP | WS_VISIBLE | WS_CLIPSIBLINGS | TBSTYLE_TOOLTIPS | CCS_NODIVIDER | CCS_NORESIZE, + rectTB.left, rectTB.top, + rectTB.right - rectTB.left, rectTB.bottom - rectTB.top, + hwnd, (HMENU)IDC_TOOLBAR, COMDLG32_hInstance, NULL); SendMessageA(fodInfos->DlgInfos.hwndTB, TB_BUTTONSTRUCTSIZE, (WPARAM) sizeof(TBBUTTON), 0);
1
0
0
0
Alexandre Julliard : uninstaller: Fail more gracefully when the registry key is missing.
by Alexandre Julliard
26 Jul '06
26 Jul '06
Module: wine Branch: refs/heads/master Commit: 084458bc2e292fa44952f760ab8214bb2f182bd9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=084458bc2e292fa44952f76…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 25 17:50:27 2006 +0200 uninstaller: Fail more gracefully when the registry key is missing. --- programs/uninstaller/main.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 79cc30b..df97b93 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -76,8 +76,7 @@ static void ListUninstallPrograms(void) char *descr; char *key; - if (! FetchUninstallInformation()) - return; + FetchUninstallInformation(); for (i=0; i < numentries; i++) { @@ -100,8 +99,7 @@ static void RemoveSpecificProgram(WCHAR int lenName; char *name; - if (! FetchUninstallInformation()) - return; + FetchUninstallInformation(); for (i=0; i < numentries; i++) { @@ -196,10 +194,7 @@ static int FetchUninstallInformation(voi numentries = 0; oldsel = -1; if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, PathUninstallW, 0, KEY_READ, &hkeyUninst) != ERROR_SUCCESS) - { - MessageBoxW(0, sRegistryKeyNotAvailable, sAppName, MB_OK); return 0; - } if (!entries) entries = HeapAlloc(GetProcessHeap(), 0, sizeof(uninst_entry)); @@ -363,6 +358,7 @@ static void UpdateList(HWND hList) prevsel = SendMessageW(hList, LB_GETCURSEL, 0, 0); if (!(FetchUninstallInformation())) { + MessageBoxW(0, sRegistryKeyNotAvailable, sAppName, MB_OK); PostQuitMessage(0); return; }
1
0
0
0
Neil Skrypuch : oleaut32: Adding a NULL to a safearray is supposed to crash .
by Alexandre Julliard
25 Jul '06
25 Jul '06
Module: wine Branch: refs/heads/master Commit: 8cec3cf120b8159313426acd81753b5a0a4d9ae9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8cec3cf120b8159313426ac…
Author: Neil Skrypuch <ns03ja(a)brocku.ca> Date: Sun Jul 23 12:25:52 2006 -0400 oleaut32: Adding a NULL to a safearray is supposed to crash. --- dlls/oleaut32/safearray.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/dlls/oleaut32/safearray.c b/dlls/oleaut32/safearray.c index 0eb92da..d3dd5e1 100644 --- a/dlls/oleaut32/safearray.c +++ b/dlls/oleaut32/safearray.c @@ -843,12 +843,6 @@ HRESULT WINAPI SafeArrayPutElement(SAFEA if (!psa || !rgIndices) return E_INVALIDARG; - if (!pvData) - { - ERR("Invalid pvData would crash under Win32!\n"); - return E_INVALIDARG; - } - hRet = SafeArrayLock(psa); if (SUCCEEDED(hRet))
1
0
0
0
Alexandre Julliard : ntdll: Avoid accessing the TEB after the memory view has been released.
by Alexandre Julliard
25 Jul '06
25 Jul '06
Module: wine Branch: refs/heads/master Commit: b91a6298a73526215b8de1cb2b1f28b7d7e7681b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b91a6298a73526215b8de1c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 25 12:03:56 2006 +0200 ntdll: Avoid accessing the TEB after the memory view has been released. When using reserved areas the memory could potentially be reused right after the release. --- dlls/ntdll/server.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index a64bdb6..d6d18e0 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -141,6 +141,7 @@ void server_exit_thread( int status ) { struct wine_pthread_thread_info info; SIZE_T size; + int fds[4]; RtlAcquirePebLock(); RemoveEntryList( &NtCurrentTeb()->TlsLinks ); @@ -151,6 +152,11 @@ void server_exit_thread( int status ) info.teb_sel = wine_get_fs(); info.exit_status = status; + fds[0] = ntdll_get_thread_data()->wait_fd[0]; + fds[1] = ntdll_get_thread_data()->wait_fd[1]; + fds[2] = ntdll_get_thread_data()->reply_fd; + fds[3] = ntdll_get_thread_data()->request_fd; + size = 0; NtFreeVirtualMemory( GetCurrentProcess(), &info.stack_base, &size, MEM_RELEASE | MEM_SYSTEM ); info.stack_size = size; @@ -160,10 +166,10 @@ void server_exit_thread( int status ) info.teb_size = size; pthread_functions.sigprocmask( SIG_BLOCK, &block_set, NULL ); - close( ntdll_get_thread_data()->wait_fd[0] ); - close( ntdll_get_thread_data()->wait_fd[1] ); - close( ntdll_get_thread_data()->reply_fd ); - close( ntdll_get_thread_data()->request_fd ); + close( fds[0] ); + close( fds[1] ); + close( fds[2] ); + close( fds[3] ); pthread_functions.exit_thread( &info ); }
1
0
0
0
Alexandre Julliard : server: Try harder to find a suitable thread for read/ write_process_memory.
by Alexandre Julliard
25 Jul '06
25 Jul '06
Module: wine Branch: refs/heads/master Commit: 7b767fb71c64315cf67f6ddd708051708f7a6637 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7b767fb71c64315cf67f6dd…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 25 11:41:47 2006 +0200 server: Try harder to find a suitable thread for read/write_process_memory. --- server/ptrace.c | 29 +++++++++++++++++------------ 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/server/ptrace.c b/server/ptrace.c index c3d7249..ed35d2e 100644 --- a/server/ptrace.c +++ b/server/ptrace.c @@ -298,18 +298,27 @@ static int write_thread_int( struct thre return res; } +/* return a thread of the process suitable for ptracing */ +static struct thread *get_ptrace_thread( struct process *process ) +{ + struct thread *thread; + + LIST_FOR_EACH_ENTRY( thread, &process->thread_list, struct thread, proc_entry ) + { + if (thread->unix_pid != -1) return thread; + } + set_error( STATUS_ACCESS_DENIED ); /* process is dead */ + return NULL; +} + /* read data from a process memory space */ int read_process_memory( struct process *process, const void *ptr, size_t size, char *dest ) { - struct thread *thread = get_process_first_thread( process ); + struct thread *thread = get_ptrace_thread( process ); unsigned int first_offset, last_offset, len; int data, *addr; - if (!thread) /* process is dead */ - { - set_error( STATUS_ACCESS_DENIED ); - return 0; - } + if (!thread) return 0; first_offset = (unsigned long)ptr % sizeof(int); last_offset = (size + first_offset) % sizeof(int); @@ -366,17 +375,13 @@ static int check_process_write_access( s /* write data to a process memory space */ int write_process_memory( struct process *process, void *ptr, size_t size, const char *src ) { - struct thread *thread = get_process_first_thread( process ); + struct thread *thread = get_ptrace_thread( process ); int ret = 0, data = 0; size_t len; int *addr; unsigned int first_mask, first_offset, last_mask, last_offset; - if (!thread) /* process is dead */ - { - set_error( STATUS_ACCESS_DENIED ); - return 0; - } + if (!thread) return 0; /* compute the mask for the first int */ first_mask = ~0;
1
0
0
0
Thomas Kho : server: Add new threads to end of thread_list.
by Alexandre Julliard
25 Jul '06
25 Jul '06
Module: wine Branch: refs/heads/master Commit: 4ff4ba394ed56b2ea94553f90ed7935e85669914 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4ff4ba394ed56b2ea94553f…
Author: Thomas Kho <tkho(a)ucla.edu> Date: Thu Jul 20 22:44:36 2006 -0500 server: Add new threads to end of thread_list. --- server/process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/process.c b/server/process.c index a73aa66..acc582e 100644 --- a/server/process.c +++ b/server/process.c @@ -534,7 +534,7 @@ static void process_killed( struct proce /* add a thread to a process running threads list */ void add_process_thread( struct process *process, struct thread *thread ) { - list_add_head( &process->thread_list, &thread->proc_entry ); + list_add_tail( &process->thread_list, &thread->proc_entry ); if (!process->running_threads++) running_processes++; grab_object( thread ); }
1
0
0
0
Phil Lodwick : rpcrt4: Support for SMVARRAY in EmbeddedComplexSize.
by Alexandre Julliard
25 Jul '06
25 Jul '06
Module: wine Branch: refs/heads/master Commit: dd000074fe68e3bc615ed086c5353e672a58c7ba URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=dd000074fe68e3bc615ed08…
Author: Phil Lodwick <Phil.Lodwick(a)EFI.COM> Date: Fri Jul 14 11:05:39 2006 -0500 rpcrt4: Support for SMVARRAY in EmbeddedComplexSize. --- dlls/rpcrt4/ndr_marshall.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index ac8d52c..9657ab9 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1652,6 +1652,7 @@ static unsigned long EmbeddedComplexSize case RPC_FC_CSTRUCT: case RPC_FC_BOGUS_STRUCT: case RPC_FC_SMFARRAY: + case RPC_FC_SMVARRAY: return *(const WORD*)&pFormat[2]; case RPC_FC_USER_MARSHAL: return *(const WORD*)&pFormat[4];
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
86
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
Results per page:
10
25
50
100
200