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
May 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
3 participants
955 discussions
Start a n
N
ew thread
Frédéric Delanoy : comctl32: Fix French translation.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 1bb4513a06b91271ef1919d5b3eb048d46a02ff9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1bb4513a06b91271ef1919d5b…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Sat May 29 17:19:18 2010 +0200 comctl32: Fix French translation. --- dlls/comctl32/comctl_Fr.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/comctl_Fr.rc b/dlls/comctl32/comctl_Fr.rc index 2fd2f89..6c766cf 100644 --- a/dlls/comctl32/comctl_Fr.rc +++ b/dlls/comctl32/comctl_Fr.rc @@ -81,7 +81,7 @@ STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE { - IDM_TODAY "Aujourd'hui:" + IDM_TODAY "Aujourd'hui :" IDM_GOTODAY "Aller à aujourd'hui" }
1
0
0
0
Vincent Povirk : windowscodecs: Fix the tile coordinate translation in the TIFF decoder.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: e390839732f7314f0ad9330df8493612b63d8e03 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e390839732f7314f0ad9330df…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Sat May 29 10:07:17 2010 -0500 windowscodecs: Fix the tile coordinate translation in the TIFF decoder. --- dlls/windowscodecs/tiffformat.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c index fe87ddd..d069fd1 100644 --- a/dlls/windowscodecs/tiffformat.c +++ b/dlls/windowscodecs/tiffformat.c @@ -756,16 +756,20 @@ static HRESULT WINAPI TiffFrameDecode_CopyPixels(IWICBitmapFrameDecode *iface, if (prc->X+prc->Width > (tile_x+1) * This->decode_info.tile_width) rc.Width = This->decode_info.tile_width - rc.X; + else if (prc->X < tile_x * This->decode_info.tile_width) + rc.Width = prc->Width + prc->X - tile_x * This->decode_info.tile_width; else - rc.Width = prc->Width + rc.X - prc->X; + rc.Width = prc->Width; if (prc->Y+prc->Height > (tile_y+1) * This->decode_info.tile_height) rc.Height = This->decode_info.tile_height - rc.Y; + else if (prc->Y < tile_y * This->decode_info.tile_height) + rc.Height = prc->Height + prc->Y - tile_y * This->decode_info.tile_height; else - rc.Height = prc->Height + rc.Y - prc->Y; + rc.Height = prc->Height; - dst_tilepos = pbBuffer + (cbStride * (rc.Y - prc->Y)) + - ((This->decode_info.bpp * (rc.X - prc->X) + 7) / 8); + dst_tilepos = pbBuffer + (cbStride * ((rc.Y + tile_y * This->decode_info.tile_height) - prc->Y)) + + ((This->decode_info.bpp * ((rc.X + tile_x * This->decode_info.tile_width) - prc->X) + 7) / 8); hr = copy_pixels(This->decode_info.bpp, This->cached_tile, This->decode_info.tile_width, This->decode_info.tile_height, This->decode_info.tile_stride,
1
0
0
0
Kristofer Henriksson : winemp3.acm: Update mpegl3.c copyright notice.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 39ea772ac4ececf106a82ce4af4eae1da9084fb7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39ea772ac4ececf106a82ce4a…
Author: Kristofer Henriksson <kthenriksson(a)gmail.com> Date: Fri May 28 15:56:57 2010 -0400 winemp3.acm: Update mpegl3.c copyright notice. --- dlls/winemp3.acm/mpegl3.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/winemp3.acm/mpegl3.c b/dlls/winemp3.acm/mpegl3.c index 92a3afc..3c60fff 100644 --- a/dlls/winemp3.acm/mpegl3.c +++ b/dlls/winemp3.acm/mpegl3.c @@ -3,6 +3,7 @@ * * Copyright (C) 2002 Eric Pouech * Copyright (C) 2009 CodeWeavers, Aric Stewart + * Copyright (C) 2010 Kristofer Henriksson * * * This library is free software; you can redistribute it and/or
1
0
0
0
Andrew Eikum : msi: Publish icons into the correct directory.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: beb0b2bc050faeee5b6afba0bc7829d1cbbc8603 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=beb0b2bc050faeee5b6afba0b…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri May 28 14:52:52 2010 -0500 msi: Publish icons into the correct directory. --- dlls/msi/helpers.c | 18 +++++-- dlls/msi/tests/install.c | 129 ++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 139 insertions(+), 8 deletions(-) diff --git a/dlls/msi/helpers.c b/dlls/msi/helpers.c index 54d2199..d3f2d90 100644 --- a/dlls/msi/helpers.c +++ b/dlls/msi/helpers.c @@ -41,13 +41,23 @@ LPWSTR build_icon_path(MSIPACKAGE *package, LPCWSTR icon_name ) { LPWSTR SystemFolder, dest, FilePath; + static const WCHAR szMicrosoft[] = + {'M','i','c','r','o','s','o','f','t','\\',0}; static const WCHAR szInstaller[] = - {'M','i','c','r','o','s','o','f','t','\\', - 'I','n','s','t','a','l','l','e','r','\\',0}; - static const WCHAR szFolder[] = + {'I','n','s','t','a','l','l','e','r','\\',0}; + static const WCHAR szADFolder[] = {'A','p','p','D','a','t','a','F','o','l','d','e','r',0}; + static const WCHAR szWFolder[] = + {'W','i','n','d','o','w','s','F','o','l','d','e','r',0}; - SystemFolder = msi_dup_property( package->db, szFolder ); + if(package->Context == MSIINSTALLCONTEXT_MACHINE) + SystemFolder = msi_dup_property( package->db, szWFolder ); + else + { + LPWSTR ADTgt = msi_dup_property( package->db, szADFolder ); + SystemFolder = build_directory_name(2, ADTgt, szMicrosoft); + msi_free(ADTgt); + } dest = build_directory_name(3, SystemFolder, szInstaller, package->ProductCode); diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index f3410f6..22309c2 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -30,6 +30,7 @@ #include <fci.h> #include <objidl.h> #include <srrestoreptapi.h> +#include <shlobj.h> #include "wine/test.h" @@ -56,6 +57,8 @@ static const char *mstfile = "winetest.mst"; static CHAR CURR_DIR[MAX_PATH]; static CHAR PROG_FILES_DIR[MAX_PATH]; static CHAR COMMON_FILES_DIR[MAX_PATH]; +static CHAR APP_DATA_DIR[MAX_PATH]; +static CHAR WINDOWS_DIR[MAX_PATH]; /* msi database data */ @@ -209,6 +212,28 @@ static const CHAR aup2_property_dat[] = "Property\tValue\n" "SERVNAME\tTestService\n" "SERVDISP\tTestServiceDisp\n"; +static const CHAR icon_property_dat[] = "Property\tValue\n" + "s72\tl0\n" + "Property\tProperty\n" + "DefaultUIFont\tDlgFont8\n" + "HASUIRUN\t0\n" + "INSTALLLEVEL\t3\n" + "InstallMode\tTypical\n" + "Manufacturer\tWine\n" + "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" + "ProductCode\t{7DF88A49-996F-4EC8-A022-BF956F9B2CBB}\n" + "ProductID\tnone\n" + "ProductLanguage\t1033\n" + "ProductName\tMSITEST\n" + "ProductVersion\t1.1.1\n" + "PROMPTROLLBACKCOST\tP\n" + "Setup\tSetup\n" + "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" + "AdminProperties\tPOSTADMIN\n" + "ROOTDRIVE\tC:\\\n" + "SERVNAME\tTestService\n" + "SERVDISP\tTestServiceDisp\n"; + static const CHAR shortcut_dat[] = "Shortcut\tDirectory_\tName\tComponent_\tTarget\tArguments\tDescription\tHotkey\tIcon_\tIconIndex\tShowCmd\tWkDir\n" "s72\ts72\tl128\ts72\ts72\tS255\tL255\tI2\tS72\tI2\tI2\tS72\n" "Shortcut\tShortcut\n" @@ -2893,6 +2918,18 @@ static const msi_table fo_tables[] = ADD_TABLE(property) }; +static const msi_table icon_base_tables[] = +{ + ADD_TABLE(ci_component), + ADD_TABLE(directory), + ADD_TABLE(rof_feature), + ADD_TABLE(rof_feature_comp), + ADD_TABLE(rof_file), + ADD_TABLE(pp_install_exec_seq), + ADD_TABLE(rof_media), + ADD_TABLE(icon_property), +}; + /* cabinet definitions */ /* make the max size large so there is only one cab file */ @@ -3179,7 +3216,18 @@ static void create_cab_file(const CHAR *name, DWORD max_size, const CHAR *files) ok(res, "Failed to destroy the cabinet\n"); } -static BOOL get_program_files_dir(LPSTR buf, LPSTR buf2) +static BOOL get_user_dirs(void) +{ + HRESULT hres; + + hres = SHGetFolderPathA(NULL, CSIDL_APPDATA, NULL, 0, APP_DATA_DIR); + if(FAILED(hres)) + return FALSE; + + return TRUE; +} + +static BOOL get_system_dirs(void) { HKEY hkey; DWORD type, size; @@ -3189,18 +3237,22 @@ static BOOL get_program_files_dir(LPSTR buf, LPSTR buf2) return FALSE; size = MAX_PATH; - if (RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size)) { + if (RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)PROG_FILES_DIR, &size)) { RegCloseKey(hkey); return FALSE; } size = MAX_PATH; - if (RegQueryValueExA(hkey, "CommonFilesDir", 0, &type, (LPBYTE)buf2, &size)) { + if (RegQueryValueExA(hkey, "CommonFilesDir", 0, &type, (LPBYTE)COMMON_FILES_DIR, &size)) { RegCloseKey(hkey); return FALSE; } RegCloseKey(hkey); + + if(GetWindowsDirectoryA(WINDOWS_DIR, MAX_PATH) != ERROR_SUCCESS) + return FALSE; + return TRUE; } @@ -9369,6 +9421,73 @@ static void test_register_mime_info(void) delete_test_files(); } +static void test_icon_table(void) +{ + MSIHANDLE hdb = 0, record; + LPCSTR query; + UINT res; + CHAR path[MAX_PATH]; + static const char prodcode[] = "{7DF88A49-996F-4EC8-A022-BF956F9B2CBB}"; + + create_database(msifile, icon_base_tables, sizeof(icon_base_tables) / sizeof(msi_table)); + + res = MsiOpenDatabase(msifile, MSIDBOPEN_TRANSACT, &hdb); + ok(res == ERROR_SUCCESS, "failed to open db: %d\n", res); + + query = "CREATE TABLE `Icon` (`Name` CHAR(72) NOT NULL, `Data` OBJECT NOT NULL PRIMARY KEY `Name`)"; + res = run_query( hdb, 0, query ); + ok(res == ERROR_SUCCESS, "Can't create Icon table: %d\n", res); + + create_file("icon.ico", 100); + record = MsiCreateRecord(1); + res = MsiRecordSetStream(record, 1, "icon.ico"); + ok(res == ERROR_SUCCESS, "Failed to add stream data to record: %d\n", res); + DeleteFile("icon.ico"); + + query = "INSERT INTO `Icon` (`Name`, `Data`) VALUES ('testicon', ?)"; + res = run_query(hdb, record, query); + ok(res == ERROR_SUCCESS, "Insert into Icon table failed: %d\n", res); + + res = MsiCloseHandle(record); + ok(res == ERROR_SUCCESS, "Failed to close record handle: %d\n", res); + res = MsiDatabaseCommit(hdb); + ok(res == ERROR_SUCCESS, "Failed to commit database: %d\n", res); + res = MsiCloseHandle(hdb); + ok(res == ERROR_SUCCESS, "Failed to close database: %d\n", res); + + /* per-user */ + res = MsiInstallProductA(msifile, "PUBLISH_PRODUCT=1"); + ok(res == ERROR_SUCCESS, "Failed to do per-user install: %d\n", res); + + lstrcpyA(path, APP_DATA_DIR); + lstrcatA(path, "\\"); + lstrcatA(path, "Microsoft\\Installer\\"); + lstrcatA(path, prodcode); + lstrcatA(path, "\\testicon"); + ok(file_exists(path), "Per-user icon file isn't where it's expected (%s)\n", path); + + res = MsiInstallProductA(msifile, "REMOVE=ALL"); + ok(res == ERROR_SUCCESS, "Failed to uninstall per-user\n"); + + /* system-wide */ + res = MsiInstallProductA(msifile, "PUBLISH_PRODUCT=1 ALLUSERS=1"); + ok(res == ERROR_SUCCESS, "Failed to system-wide install: %d\n", res); + + lstrcpyA(path, WINDOWS_DIR); + lstrcatA(path, "\\"); + lstrcatA(path, "Installer\\"); + lstrcatA(path, prodcode); + lstrcatA(path, "\\testicon"); + ok(file_exists(path), "System-wide icon file isn't where it's expected (%s)\n", path); + + res = MsiInstallProductA(msifile, "REMOVE=ALL"); + ok(res == ERROR_SUCCESS, "Failed to uninstall system-wide\n"); + + delete_pfmsitest_files(); + + DeleteFile(msifile); +} + START_TEST(install) { DWORD len; @@ -9390,7 +9509,8 @@ START_TEST(install) if(len && (CURR_DIR[len - 1] == '\\')) CURR_DIR[len - 1] = 0; - get_program_files_dir(PROG_FILES_DIR, COMMON_FILES_DIR); + get_system_dirs(); + get_user_dirs(); /* Create a restore point ourselves so we circumvent the multitude of restore points * that would have been created by all the installation and removal tests. @@ -9479,6 +9599,7 @@ START_TEST(install) test_register_class_info(); test_register_extension_info(); test_register_mime_info(); + test_icon_table(); DeleteFileA(log_file);
1
0
0
0
André Hentschel : winapi: Allow multiple flags.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 86f67209bb27f150ecd6692299cae471887ef1f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=86f67209bb27f150ecd669229…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Fri May 28 21:31:31 2010 +0200 winapi: Allow multiple flags. --- tools/winapi/winapi.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winapi/winapi.pm b/tools/winapi/winapi.pm index 4d0c43d..dcd9268 100644 --- a/tools/winapi/winapi.pm +++ b/tools/winapi/winapi.pm @@ -391,7 +391,7 @@ sub parse_spec_file($$) { } } } - } elsif(/^(\d+|@)\s+stub(?:\s+(-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-noname|-norelay|-i386|-ret16|-ret64|-private))?\s+(\S+)$/) { + } elsif(/^(\d+|@)\s+stub(?:\s+(-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-noname|-norelay|-i386|-ret16|-ret64|-private))*\s+(\S+)$/) { $ordinal = $1; my $flags = $2; @@ -440,7 +440,7 @@ sub parse_spec_file($$) { } else { # if($$function_external_module{$external_name} !~ /$module/) { $$function_external_module{$external_name} .= " & $module"; } - } elsif(/^(\d+|@)\s+extern(?:\s+(?:-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-norelay|-i386|-ret16|-ret64))?\s+(\S+)\s*(\S*)$/) { + } elsif(/^(\d+|@)\s+extern(?:\s+(?:-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-norelay|-i386|-ret16|-ret64))*\s+(\S+)\s*(\S*)$/) { $ordinal = $1; my $external_name = $2;
1
0
0
0
André Hentschel : winapi: Add ordinal flag.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: f181a48e6a4e768994a72babaa6634966c98f740 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f181a48e6a4e768994a72baba…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Fri May 28 21:31:06 2010 +0200 winapi: Add ordinal flag. --- tools/winapi/winapi.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/winapi/winapi.pm b/tools/winapi/winapi.pm index db0b06a..4d0c43d 100644 --- a/tools/winapi/winapi.pm +++ b/tools/winapi/winapi.pm @@ -282,7 +282,7 @@ sub parse_spec_file($$) { my $ARCHES="alpha|i386|powerpc|sparc|win32|win64|x86_64"; if(/^(\d+|@)\s+ (cdecl|pascal|stdcall|varargs)\s+ - ((?:(?:-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-noname|-norelay|-i386|-ret16|-ret64|-register|-interrupt|-private)\s+)*)(\S+)\s*\(\s*(.*?)\s*\)\s*(\S*)$/x) + ((?:(?:-arch=(?:$ARCHES)(?:,(?:$ARCHES))*|-noname|-norelay|-ordinal|-i386|-ret16|-ret64|-register|-interrupt|-private)\s+)*)(\S+)\s*\(\s*(.*?)\s*\)\s*(\S*)$/x) { my $calling_convention = $2; my $flags = $3;
1
0
0
0
André Hentschel : winapi: Init preprocessor_condition.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 9eda2de2b81df96617867c5feb900cc3d1212a7e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9eda2de2b81df96617867c5fe…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Fri May 28 21:30:36 2010 +0200 winapi: Init preprocessor_condition. --- tools/winapi/c_parser.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/winapi/c_parser.pm b/tools/winapi/c_parser.pm index e927fb9..189f780 100644 --- a/tools/winapi/c_parser.pm +++ b/tools/winapi/c_parser.pm @@ -720,7 +720,7 @@ sub parse_c_file($$$$) my $previous_line = 0; my $previous_column = -1; - my $preprocessor_condition; + my $preprocessor_condition = ""; my $if = 0; my $if0 = 0; my $extern_c = 0;
1
0
0
0
Alexandre Julliard : user32: Fallback to normal icon drawing if AlphaBlend fails.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: f5f3426c878238545393ce4e95be2c75217f55ea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f5f3426c878238545393ce4e9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 29 10:47:28 2010 +0200 user32: Fallback to normal icon drawing if AlphaBlend fails. --- dlls/user32/cursoricon.c | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index e4973e3..b54d9fd 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -2030,11 +2030,11 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, r.right = cxWidth; r.bottom = cxWidth; - if (!(hdc_dest = CreateCompatibleDC(hdc))) goto done; + if (!(hdc_dest = CreateCompatibleDC(hdc))) goto failed; if (!(hB_off = CreateCompatibleBitmap(hdc, cxWidth, cyWidth))) { DeleteDC( hdc_dest ); - goto done; + goto failed; } SelectObject(hdc_dest, hB_off); FillRect(hdc_dest, &r, hbr); @@ -2052,7 +2052,16 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, oldFg = SetTextColor( hdc, RGB(0,0,0) ); oldBg = SetBkColor( hdc, RGB(255,255,255) ); - if ((flags & DI_MASK) && (!ptr->alpha || !(flags & DI_IMAGE))) + if (ptr->alpha && (flags & DI_IMAGE)) + { + BLENDFUNCTION pixelblend = { AC_SRC_OVER, 0, 255, AC_SRC_ALPHA }; + + SelectObject( hMemDC, ptr->alpha ); + if (GdiAlphaBlend( hdc_dest, x, y, cxWidth, cyWidth, hMemDC, + 0, 0, ptr->width, ptr->height, pixelblend )) goto done; + } + + if (flags & DI_MASK) { SelectObject( hMemDC, ptr->mask ); StretchBlt( hdc_dest, x, y, cxWidth, cyWidth, @@ -2061,15 +2070,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, if (flags & DI_IMAGE) { - if (ptr->alpha) - { - BLENDFUNCTION pixelblend = { AC_SRC_OVER, 0, 255, AC_SRC_ALPHA }; - - SelectObject( hMemDC, ptr->alpha ); - GdiAlphaBlend( hdc_dest, x, y, cxWidth, cyWidth, hMemDC, - 0, 0, ptr->width, ptr->height, pixelblend ); - } - else if (ptr->color) + if (ptr->color) { DWORD rop = (flags & DI_MASK) ? SRCINVERT : SRCCOPY; SelectObject( hMemDC, ptr->color ); @@ -2085,6 +2086,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, } } +done: if (DoOffscreen) BitBlt( hdc, x0, y0, cxWidth, cyWidth, hdc_dest, 0, 0, SRCCOPY ); SetTextColor( hdc, oldFg ); @@ -2093,7 +2095,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, result = TRUE; if (hdc_dest != hdc) DeleteDC( hdc_dest ); if (hB_off) DeleteObject(hB_off); -done: +failed: DeleteDC( hMemDC ); release_icon_ptr( hIcon, ptr ); return result;
1
0
0
0
Alexandre Julliard : winex11: Disable sub-pixel antialiasing if Xrender isn 't supported.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 7e23f9ce0891e006a82fafd9f172cde53f11965e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7e23f9ce0891e006a82fafd9f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 29 10:42:29 2010 +0200 winex11: Disable sub-pixel antialiasing if Xrender isn't supported. --- dlls/winex11.drv/xrender.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index b13f2e4..cca3321 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -988,6 +988,9 @@ static int GetCacheEntry(X11DRV_PDEVICE *physDev, LFANDSIZE *plfsz) } wine_tsx11_unlock(); } + + /* we can't support subpixel without xrender */ + if (!X11DRV_XRender_Installed && entry->aa_default > AA_Grey) entry->aa_default = AA_Grey; } else entry->aa_default = AA_None;
1
0
0
0
Alexandre Julliard : msvcrt: Make sure msvcrt doesn't get unloaded.
by Alexandre Julliard
31 May '10
31 May '10
Module: wine Branch: master Commit: 14b3db99c1b552c3a0d5dc8e2003122677575a81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=14b3db99c1b552c3a0d5dc8e2…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri May 28 20:33:27 2010 +0200 msvcrt: Make sure msvcrt doesn't get unloaded. We can't initialize file handles properly a second time. --- dlls/msvcrt/main.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c index a5b0961..323f8b7 100644 --- a/dlls/msvcrt/main.c +++ b/dlls/msvcrt/main.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ #include "msvcrt.h" +#include "winternl.h" #include "wine/debug.h" @@ -100,6 +101,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) msvcrt_init_args(); msvcrt_init_signals(); _setmbcp(_MB_CP_LOCALE); + /* don't allow unloading msvcrt, we can't setup file handles twice */ + LdrAddRefDll( 0, hinstDLL ); TRACE("finished process init\n"); break; case DLL_THREAD_ATTACH:
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
96
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Results per page:
10
25
50
100
200