winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
August 2006
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
5 participants
746 discussions
Start a n
N
ew thread
Alexandre Julliard : configure: Setting rpath should no longer be needed for dlls.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 4e8cb6170f6582dc18e5df88c480aea55abf20fa URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4e8cb6170f6582dc18e5df8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Aug 16 13:25:08 2006 +0200 configure: Setting rpath should no longer be needed for dlls. --- configure | 6 +----- configure.ac | 1 - dlls/Makedll.rules.in | 3 +-- programs/Makeprog.rules.in | 3 +-- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/configure b/configure index c2e0a9c..92e8a71 100755 --- a/configure +++ b/configure @@ -745,7 +745,6 @@ IOKITLIB LDEXECFLAGS COREAUDIO LDEXERPATH -LDDLLRPATH CROSSTEST CROSSCC CROSSWINDRES @@ -15894,8 +15893,6 @@ echo "${ECHO_T}$ac_cv_ld_rpath" >&6; } then LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" - LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`" - fi case $host_cpu in @@ -25028,7 +25025,6 @@ IOKITLIB!$IOKITLIB$ac_delim LDEXECFLAGS!$LDEXECFLAGS$ac_delim COREAUDIO!$COREAUDIO$ac_delim LDEXERPATH!$LDEXERPATH$ac_delim -LDDLLRPATH!$LDDLLRPATH$ac_delim CROSSTEST!$CROSSTEST$ac_delim CROSSCC!$CROSSCC$ac_delim CROSSWINDRES!$CROSSWINDRES$ac_delim @@ -25044,7 +25040,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 diff --git a/configure.ac b/configure.ac index 9c67844..45fe3e0 100644 --- a/configure.ac +++ b/configure.ac @@ -1122,7 +1122,6 @@ case $host_os in if test "$ac_cv_ld_rpath" = "yes" then AC_SUBST(LDEXERPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"]) - AC_SUBST(LDDLLRPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"]) fi case $host_cpu in diff --git a/dlls/Makedll.rules.in b/dlls/Makedll.rules.in index 416c63c..5b4f62c 100644 --- a/dlls/Makedll.rules.in +++ b/dlls/Makedll.rules.in @@ -12,7 +12,6 @@ # DLLFLAGS = @DLLFLAGS@ DLLEXT = @DLLEXT@ IMPLIBEXT = @IMPLIBEXT@ -LDRPATH = @LDDLLRPATH@ DEFS = -D__WINESRC__ $(EXTRADEFS) BASEMODULE = $(MODULE:%.dll=%) MAINSPEC = $(BASEMODULE).spec @@ -33,7 +32,7 @@ all: $(MODULE)$(DLLEXT) $(SUBDIRS) # Rules for .so files $(MODULE).so: $(MAINSPEC) $(ALL_OBJS) Makefile.in - $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(SUBSYSTEM:%=-Wb,--subsystem,%) $(BASEADDRESS:%=-Wl,--image-base,%) $(LDRPATH) -o $@ $(ALL_IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS) + $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(SUBSYSTEM:%=-Wb,--subsystem,%) $(BASEADDRESS:%=-Wl,--image-base,%) -o $@ $(ALL_IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS) # Rules for .dll files diff --git a/programs/Makeprog.rules.in b/programs/Makeprog.rules.in index 154f6bb..84cdd12 100644 --- a/programs/Makeprog.rules.in +++ b/programs/Makeprog.rules.in @@ -10,7 +10,6 @@ # plus all variables required by the glo # DLLFLAGS = @DLLFLAGS@ -LDRPATH = @LDDLLRPATH@ DEFS = $(EXTRADEFS) ALL_IMPORTS = $(DELAYIMPORTS) $(IMPORTS) ALL_LIBS = $(ALL_IMPORTS:%=-l%) $(EXTRALIBS) $(LIBPORT) $(LDFLAGS) $(LIBS) @@ -25,7 +24,7 @@ all: $(MODULE)$(DLLEXT) $(BASEMODULE)$(E # Rules for .so main module $(MODULE).so: $(OBJS) $(RC_SRCS:.rc=.res) Makefile.in - $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(LDRPATH) $(ALL_LIBS) $(DELAYIMPORTS:%=-Wb,-d%) + $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(ALL_LIBS) $(DELAYIMPORTS:%=-Wb,-d%) $(BASEMODULE): $(WINEWRAPPER) $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
1
0
0
0
Mike McCormack : shlwapi: Ordinal 394 should load and call shell32. SHNotifyChange.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 106e65e0f8d5bae71a1f17d4eed447b25d73b953 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=106e65e0f8d5bae71a1f17d…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Wed Aug 16 11:57:51 2006 +0900 shlwapi: Ordinal 394 should load and call shell32.SHNotifyChange. Makes builtin shlwapi behave better during reboot after IE6 install. --- dlls/shlwapi/ordinal.c | 16 ++++++++++++++++ dlls/shlwapi/shlwapi.spec | 2 +- 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c index b19e27b..ec52385 100644 --- a/dlls/shlwapi/ordinal.c +++ b/dlls/shlwapi/ordinal.c @@ -4431,3 +4431,19 @@ UINT WINAPI ZoneComputePaneSize(HWND hwn FIXME("\n"); return 0x95; } + +typedef void (WINAPI *fnSHChangeNotify)(LONG, UINT, LPCVOID, LPCVOID); + +void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2) +{ + static fnSHChangeNotify fn; + HMODULE hshell32; + + if (!fn) + { + hshell32 = LoadLibraryA("shell32"); + if (hshell32) + fn = (fnSHChangeNotify) GetProcAddress(hshell32, "SHChangeNotify"); + } + fn(wEventId, uFlags, dwItem1, dwItem2); +} diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec index 36c6b70..0843ad9 100644 --- a/dlls/shlwapi/shlwapi.spec +++ b/dlls/shlwapi/shlwapi.spec @@ -391,7 +391,7 @@ 391 stdcall -noname WNetGetLastErrorWrapW(ptr ptr long ptr long) 392 stdcall -noname EndDialogWrap(ptr ptr) user32.EndDialog 393 stdcall @(long ptr long ptr long) user32.CreateDialogIndirectParamW -394 stdcall @(long ptr long ptr long) user32.CreateDialogIndirectParamA +394 stdcall -noname SHChangeNotify(long long ptr ptr) 395 stub -noname MLWinHelpA 396 stub -noname MLHtmlHelpA 397 stub -noname MLWinHelpW
1
0
0
0
Mike McCormack : shlwapi: Add a stub implementation for ZoneComputePaneSize .
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: ba3d4b2243772cb143f3f1b51ac0053e7c936c22 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ba3d4b2243772cb143f3f1b…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Wed Aug 16 12:52:18 2006 +0900 shlwapi: Add a stub implementation for ZoneComputePaneSize. Allows IE6 to show its main window with builtin shlwapi. --- dlls/shlwapi/ordinal.c | 9 +++++++++ dlls/shlwapi/shlwapi.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c index e198fba..b19e27b 100644 --- a/dlls/shlwapi/ordinal.c +++ b/dlls/shlwapi/ordinal.c @@ -4422,3 +4422,12 @@ HRESULT WINAPI IUnknown_ProfferService(I FIXME("%p %p %p %p\n", unk, x0, x1, x2); return E_NOTIMPL; } + +/*********************************************************************** + * ZoneComputePaneSize [SHLWAPI.382] + */ +UINT WINAPI ZoneComputePaneSize(HWND hwnd) +{ + FIXME("\n"); + return 0x95; +} diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec index 0295e1b..36c6b70 100644 --- a/dlls/shlwapi/shlwapi.spec +++ b/dlls/shlwapi/shlwapi.spec @@ -379,7 +379,7 @@ 379 stub -noname Shell_GetCachedImageIndexWrapW 380 stub -noname Shell_GetCachedImageIndexWrapA 381 stub -noname AssocCopyVerbs -382 stub -noname ZoneComputePaneSize +382 stdcall -noname ZoneComputePaneSize(ptr) 383 stub -noname ZoneConfigureW 384 stub -noname SHRestrictedMessageBox 385 stub -noname SHLoadRawAccelerators
1
0
0
0
Mike McCormack : msi: Fix a couple of memory leaks in the test code.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: b42f9df9139458954d5b1dceec7e82ba4e9e0741 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b42f9df9139458954d5b1dc…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Wed Aug 16 11:58:09 2006 +0900 msi: Fix a couple of memory leaks in the test code. --- dlls/msi/tests/db.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 6c6ddfc..6da7666 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -1196,6 +1196,7 @@ static void test_markers(void) query = "CREATE TABLE `Table` ( `One` SHORT NOT NULL, `Two` CHAR(255) PRIMARY KEY `One`)"; r = run_query(hdb, 0, query); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + MsiCloseHandle(rec); /* try table name as marker */ rec = MsiCreateRecord(1); @@ -1351,6 +1352,7 @@ static void test_markers(void) query = "INSERT INTO `Table` ( `One`, `Two` ) VALUES ( ?, ? )"; r = run_query(hdb, rec, query); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + MsiCloseHandle(rec); MsiCloseHandle(hdb); DeleteFileA(msifile);
1
0
0
0
Frank Richter : winecfg: appdefaults: Use more strings from resources, unicode.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 36dd205fff584dfada7792e4faf0699a97e01d30 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=36dd205fff584dfada7792e…
Author: Frank Richter <frank.richter(a)gmail.com> Date: Wed Aug 16 06:23:52 2006 +0200 winecfg: appdefaults: Use more strings from resources, unicode. --- programs/winecfg/appdefaults.c | 84 +++++++++++++++++++++++++++------------- programs/winecfg/resource.h | 4 ++ programs/winecfg/winecfg.h | 6 +++ 3 files changed, 66 insertions(+), 28 deletions(-) diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c index e880cfe..8725757 100644 --- a/programs/winecfg/appdefaults.c +++ b/programs/winecfg/appdefaults.c @@ -109,7 +109,12 @@ init_comboboxes (HWND dialog) /* add the default entries (automatic) which correspond to no setting */ if (current_app) - SendDlgItemMessage(dialog, IDC_WINVER, CB_ADDSTRING, 0, (LPARAM) "Use global settings"); + { + WCHAR str[256]; + LoadStringW (GetModuleHandle (NULL), IDS_USE_GLOBAL_SETTINGS, str, + sizeof(str)/sizeof(str[0])); + SendDlgItemMessageW (dialog, IDC_WINVER, CB_ADDSTRING, 0, (LPARAM)str); + } for (i = 0; i < NB_VERSIONS; i++) { @@ -118,19 +123,19 @@ init_comboboxes (HWND dialog) } } -static void add_listview_item(HWND listview, const char *text, void *association) +static void add_listview_item(HWND listview, const WCHAR *text, void *association) { - LVITEM item; + LVITEMW item; ZeroMemory(&item, sizeof(LVITEM)); item.mask = LVIF_TEXT | LVIF_PARAM; - item.pszText = (char*) text; - item.cchTextMax = strlen(text); + item.pszText = (WCHAR*) text; + item.cchTextMax = lstrlenW(text); item.lParam = (LPARAM) association; item.iItem = ListView_GetItemCount(listview); - SendMessage(listview, LVM_INSERTITEM, 0, (LPARAM) &item); + SendMessage(listview, LVM_INSERTITEMW, 0, (LPARAM) &item); } /* Called when the application is initialized (cannot reinit!) */ @@ -140,7 +145,7 @@ static void init_appsheet(HWND dialog) HKEY key; int i; DWORD size; - char appname[1024]; + WCHAR appname[1024]; WINE_TRACE("()\n"); @@ -148,19 +153,19 @@ static void init_appsheet(HWND dialog) /* we use the lparam field of the item so we can alter the presentation later and not change code * for instance, to use the tile view or to display the EXEs embedded 'display name' */ - add_listview_item(listview, "Default Settings", NULL); + add_listview_item(listview, load_string (IDS_DEFAULT_SETTINGS), NULL); /* because this list is only populated once, it's safe to bypass the settings list here */ if (RegOpenKey(config_key, "AppDefaults", &key) == ERROR_SUCCESS) { i = 0; - size = sizeof(appname); - while (RegEnumKeyEx(key, i, appname, &size, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) + size = sizeof(appname)/sizeof(appname[0]); + while (RegEnumKeyExW (key, i, appname, &size, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) { - add_listview_item(listview, appname, strdupA(appname)); + add_listview_item(listview, appname, strdupW(appname)); i++; - size = sizeof(appname); + size = sizeof(appname)/sizeof(appname[0]); } RegCloseKey(key); @@ -240,47 +245,63 @@ static void on_selection_change(HWND dia set_window_title(dialog); } -static BOOL list_contains_file(HWND listview, char *filename) +static BOOL list_contains_file(HWND listview, WCHAR *filename) { - LVFINDINFO find_info = { LVFI_STRING, filename, 0, {0, 0}, 0 }; + LVFINDINFOW find_info = { LVFI_STRING, filename, 0, {0, 0}, 0 }; int index; - index = ListView_FindItem(listview, -1, &find_info); + index = ListView_FindItemW(listview, -1, &find_info); return (index != -1); } static void on_add_app_click(HWND dialog) { - char filetitle[MAX_PATH]; - char file[MAX_PATH]; - - OPENFILENAME ofn = { sizeof(OPENFILENAME), - 0, /*hInst*/0, "Wine Programs (*.exe,*.exe.so)\0*.exe;*.exe.so\0", NULL, 0, 0, NULL, - 0, NULL, 0, "c:\\", "Select a Windows executable file", + WCHAR filetitle[MAX_PATH]; + WCHAR file[MAX_PATH]; + WCHAR programsFilter[100]; + WCHAR selectExecutableStr[100]; + static const WCHAR pathC[] = { 'c',':','\\',0 }; + + OPENFILENAMEW ofn = { sizeof(OPENFILENAMEW), + 0, /*hInst*/0, 0, NULL, 0, 0, NULL, + 0, NULL, 0, pathC, 0, OFN_SHOWHELP | OFN_HIDEREADONLY, 0, 0, NULL, 0, NULL }; + LoadStringW (GetModuleHandle (NULL), IDS_SELECT_EXECUTABLE, selectExecutableStr, + sizeof(selectExecutableStr)/sizeof(selectExecutableStr[0])); + LoadStringW (GetModuleHandle (NULL), IDS_EXECUTABLE_FILTER, programsFilter, + sizeof(programsFilter)/sizeof(programsFilter[0])); + + ofn.lpstrTitle = selectExecutableStr; + ofn.lpstrFilter = programsFilter; ofn.lpstrFileTitle = filetitle; ofn.lpstrFileTitle[0] = '\0'; - ofn.nMaxFileTitle = sizeof(filetitle); + ofn.nMaxFileTitle = sizeof(filetitle)/sizeof(filetitle[0]); ofn.lpstrFile = file; ofn.lpstrFile[0] = '\0'; - ofn.nMaxFile = sizeof(file); + ofn.nMaxFile = sizeof(file)/sizeof(file[0]); - if (GetOpenFileName(&ofn)) + if (GetOpenFileNameW (&ofn)) { HWND listview = GetDlgItem(dialog, IDC_APP_LISTVIEW); int count = ListView_GetItemCount(listview); - char* new_app; + WCHAR* new_app; + char* new_appA; + DWORD new_appA_len; - new_app = strdupA(filetitle); + new_app = strdupW(filetitle); if (list_contains_file(listview, new_app)) return; - WINE_TRACE("adding %s\n", new_app); + WINE_TRACE("adding %s\n", wine_dbgstr_w (new_app)); + + new_appA_len = WideCharToMultiByte (CP_ACP, 0, new_app, -1, NULL, 0, NULL, NULL); + new_appA = HeapAlloc (GetProcessHeap(), 0, new_appA_len); + WideCharToMultiByte (CP_ACP, 0, new_app, -1, new_appA, new_appA_len, NULL, NULL); - add_listview_item(listview, new_app, new_app); + add_listview_item(listview, new_app, new_appA); ListView_SetItemState(listview, count, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED); @@ -294,6 +315,10 @@ static void on_remove_app_click(HWND dia HWND listview = GetDlgItem(dialog, IDC_APP_LISTVIEW); int selection = get_listview_selection(listview); char *section = keypath(""); /* AppDefaults\\whatever.exe\\ */ + LVITEMW item; + + item.iItem = selection; + item.mask = LVIF_PARAM | LVIF_TEXT; WINE_TRACE("selection=%d, section=%s\n", selection, section); @@ -301,6 +326,9 @@ static void on_remove_app_click(HWND dia section[strlen(section)] = '\0'; /* remove last backslash */ set_reg_key(config_key, section, NULL, NULL); /* delete the section */ + SendMessage(listview, LVM_GETITEMW, 0, (LPARAM) &item); + HeapFree (GetProcessHeap(), 0, item.pszText); + HeapFree (GetProcessHeap(), 0, (void*)item.lParam); SendMessage(listview, LVM_DELETEITEM, selection, 0); ListView_SetItemState(listview, selection - 1, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED); diff --git a/programs/winecfg/resource.h b/programs/winecfg/resource.h index 99c10ed..67013c1 100644 --- a/programs/winecfg/resource.h +++ b/programs/winecfg/resource.h @@ -86,6 +86,10 @@ #define IDS_DLL_BUILTIN #define IDS_DLL_NATIVE_BUILTIN 8014 #define IDS_DLL_BUILTIN_NATIVE 8015 #define IDS_DLL_DISABLED 8016 +#define IDS_DEFAULT_SETTINGS 8017 +#define IDS_EXECUTABLE_FILTER 8018 +#define IDS_USE_GLOBAL_SETTINGS 8019 +#define IDS_SELECT_EXECUTABLE 8020 /* drive editing */ #define IDC_LIST_DRIVES 1042 diff --git a/programs/winecfg/winecfg.h b/programs/winecfg/winecfg.h index 5332abe..3cd3d45 100644 --- a/programs/winecfg/winecfg.h +++ b/programs/winecfg/winecfg.h @@ -121,6 +121,12 @@ static inline char *strdupA(const char * return strcpy(r, s); } +static inline WCHAR *strdupW(const WCHAR *s) +{ + WCHAR *r = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(s)+1)*sizeof(WCHAR)); + return lstrcpyW(r, s); +} + static inline char *get_text(HWND dialog, WORD id) { HWND item = GetDlgItem(dialog, id);
1
0
0
0
Frank Richter : winecfg: Make load_string public.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: 722ee099c151a3881a5816b158973196e9f3a39b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=722ee099c151a3881a5816b…
Author: Frank Richter <frank.richter(a)gmail.com> Date: Wed Aug 16 06:22:54 2006 +0200 winecfg: Make load_string public. --- programs/winecfg/main.c | 15 --------------- programs/winecfg/winecfg.c | 15 +++++++++++++++ programs/winecfg/winecfg.h | 3 +++ 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/programs/winecfg/main.c b/programs/winecfg/main.c index d2b3100..6fc77f7 100644 --- a/programs/winecfg/main.c +++ b/programs/winecfg/main.c @@ -78,21 +78,6 @@ AboutDlgProc (HWND hDlg, UINT uMsg, WPAR return FALSE; } -static WCHAR* load_string (UINT id) -{ - WCHAR buf[100]; - int len; - WCHAR* newStr; - - LoadStringW (GetModuleHandle (NULL), id, buf, sizeof(buf)/sizeof(buf[0])); - - len = lstrlenW (buf); - newStr = HeapAlloc (GetProcessHeap(), 0, (len + 1) * sizeof (WCHAR)); - memcpy (newStr, buf, len * sizeof (WCHAR)); - newStr[len] = 0; - return newStr; -} - #define NUM_PROPERTY_PAGES 7 static INT_PTR diff --git a/programs/winecfg/winecfg.c b/programs/winecfg/winecfg.c index 2d70fca..dfa5aeb 100644 --- a/programs/winecfg/winecfg.c +++ b/programs/winecfg/winecfg.c @@ -72,6 +72,21 @@ void set_window_title(HWND dialog) } +WCHAR* load_string (UINT id) +{ + WCHAR buf[100]; + int len; + WCHAR* newStr; + + LoadStringW (GetModuleHandle (NULL), id, buf, sizeof(buf)/sizeof(buf[0])); + + len = lstrlenW (buf); + newStr = HeapAlloc (GetProcessHeap(), 0, (len + 1) * sizeof (WCHAR)); + memcpy (newStr, buf, len * sizeof (WCHAR)); + newStr[len] = 0; + return newStr; +} + /** * get_config_key: Retrieves a configuration value from the registry * diff --git a/programs/winecfg/winecfg.h b/programs/winecfg/winecfg.h index 53fe9ee..5332abe 100644 --- a/programs/winecfg/winecfg.h +++ b/programs/winecfg/winecfg.h @@ -58,6 +58,9 @@ BOOL reg_key_exists(HKEY root, const cha void apply(void); char **enumerate_values(HKEY root, char *path); +/* Load a string from the resources. Allocated with HeapAlloc (GetProcessHeap()) */ +WCHAR* load_string (UINT id); + /* returns a string of the form "AppDefaults\\appname.exe\\section", or just "section" if the user is editing the global settings.
1
0
0
0
Frank Richter : winecfg: Tweak and update German resources.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: acdae1536020871f53f4db5accbf02952b697283 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=acdae1536020871f53f4db5…
Author: Frank Richter <frank.richter(a)gmail.com> Date: Wed Aug 16 04:37:03 2006 +0200 winecfg: Tweak and update German resources. --- programs/winecfg/De.rc | 69 ++++++++++++++++++++++++------------------------ 1 files changed, 34 insertions(+), 35 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=acdae1536020871f53f…
1
0
0
0
Dan Hipschman : widl: Generate proxy code for user marshalled types.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: a5ff173cc3dccbe63185420158fcc8a620a6cc1d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a5ff173cc3dccbe63185420…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Aug 15 18:35:01 2006 -0700 widl: Generate proxy code for user marshalled types. --- tools/widl/proxy.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index f060a23..1943b22 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -232,6 +232,34 @@ int cant_be_null(var_t *v) return 1; /* Default is RPC_FC_RP. */ } +static int is_user_derived(var_t *v) +{ + const attr_t *attrs = v->attrs; + const type_t *type = v->type; + + if (! attrs && type) + { + attrs = type->attrs; + type = type->ref; + } + + while (attrs) + { + if (is_attr(attrs, ATTR_WIREMARSHAL)) + return 1; + + if (type) + { + attrs = type->attrs; + type = type->ref; + } + else + attrs = NULL; + } + + return 0; +} + static void proxy_check_pointers( var_t *arg ) { END_OF_LIST(arg); @@ -263,6 +291,13 @@ static void marshall_size_arg( var_t *ar return; } + if (is_user_derived(arg)) + { + print_proxy("NdrUserMarshalBufferSize( &_StubMsg, (unsigned char*)%s, ", arg->name); + fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d] );\n", index); + return; + } + switch( type->type ) { case RPC_FC_BYTE: @@ -355,6 +390,13 @@ static void marshall_copy_arg( var_t *ar return; } + if (is_user_derived(arg)) + { + print_proxy("NdrUserMarshalMarshall( &_StubMsg, (unsigned char*)%s, ", arg->name); + fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d] );\n", index); + return; + } + switch( type->type ) { case RPC_FC_BYTE: @@ -454,6 +496,13 @@ static void unmarshall_copy_arg( var_t * return; } + if (is_user_derived(arg)) + { + print_proxy("NdrUserMarshalUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name); + fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0 );\n", index); + return; + } + switch( type->type ) { case RPC_FC_BYTE:
1
0
0
0
Dan Hipschman : widl: Fix out-only temporary variable generation.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: c526c980d7ac68e0918c278bfccc50e118fe3ea9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c526c980d7ac68e0918c278…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Aug 15 18:33:58 2006 -0700 widl: Fix out-only temporary variable generation. --- tools/widl/proxy.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 4a4e080..f060a23 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -685,8 +685,10 @@ static void gen_proxy(type_t *iface, fun static void stub_write_locals( var_t *arg ) { int n = 0; + END_OF_LIST(arg); while (arg) { - int outptr = is_attr(arg->attrs, ATTR_OUT); + int outptr = is_attr(arg->attrs, ATTR_OUT) + && ! is_attr(arg->attrs, ATTR_IN); /* create a temporary variable to store the output */ if (outptr) { @@ -702,7 +704,7 @@ static void stub_write_locals( var_t *ar fprintf(proxy, " "); write_name(proxy, arg); fprintf(proxy, ";\n"); - arg = NEXT_LINK(arg); + arg = PREV_LINK(arg); } } @@ -731,7 +733,8 @@ static void stub_unmarshall( var_t *arg print_proxy(""); write_name(proxy, arg); fprintf(proxy," = &_M%d;\n", n); - print_proxy("_M%d = 0;\n", n++); + print_proxy("MIDL_memset(&_M%d, 0, sizeof _M%d);\n", n, n); + ++n; break; } }
1
0
0
0
Dan Hipschman : widl: Fix NdrComplexStructUnmarshall calls in generated code.
by Alexandre Julliard
16 Aug '06
16 Aug '06
Module: wine Branch: master Commit: e77a079b279ba168ab9d2d66390d2f2247edfafd URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e77a079b279ba168ab9d2d6…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Aug 15 18:32:09 2006 -0700 widl: Fix NdrComplexStructUnmarshall calls in generated code. --- tools/widl/proxy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 642afbe..4a4e080 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -486,7 +486,7 @@ static void unmarshall_copy_arg( var_t * break; case RPC_FC_BOGUS_STRUCT: - print_proxy( "NdrComplexStructUnmarshall(&_StubMsg, (unsigned char*)%s, ", arg->name ); + print_proxy( "NdrComplexStructUnmarshall(&_StubMsg, (unsigned char**)&%s, ", arg->name ); fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0 );\n", index ); break;
1
0
0
0
← Newer
1
...
29
30
31
32
33
34
35
...
75
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Results per page:
10
25
50
100
200