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
June
May
April
March
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
February 2006
----- 2025 -----
June 2025
May 2025
April 2025
March 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
4 participants
696 discussions
Start a n
N
ew thread
Kevin Koltzau : widl: Fix 64bit warning.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: a8b209752f65d403c1c24b5ddc141de23c4e237d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a8b209752f65d403c1c24b5…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Wed Feb 22 13:52:53 2006 -0500 widl: Fix 64bit warning. --- tools/widl/typegen.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index acde725..d9b722c 100644 --- a/tools/widl/typegen.c +++ b/
…
[View More]
tools/widl/typegen.c @@ -1586,7 +1586,7 @@ size_t get_size_procformatstring_var(con size_t get_size_typeformatstring_var(const var_t *var) { - unsigned int type_offset = 0; + size_t type_offset = 0; write_typeformatstring_var(NULL, 0, var, &type_offset); return type_offset; }
[View Less]
1
0
0
0
Kevin Koltzau : x11drv: Fix 64bit warning.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 77da4fc5b55740957e78df8f8c4e438ef34b5186 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=77da4fc5b55740957e78df8…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Wed Feb 22 13:53:19 2006 -0500 x11drv: Fix 64bit warning. --- dlls/x11drv/clipboard.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/x11drv/clipboard.c b/dlls/x11drv/clipboard.c index 3821c2c..567edd9 100644 --- a/dlls/
…
[View More]
x11drv/clipboard.c +++ b/dlls/x11drv/clipboard.c @@ -1130,9 +1130,9 @@ static BOOL X11DRV_CLIPBOARD_RenderSynth HANDLE X11DRV_CLIPBOARD_ImportXAString(Window w, Atom prop) { LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; LPSTR lpstr; - UINT i, inlcount = 0; + unsigned long i, inlcount = 0; HANDLE hText = 0; if (!X11DRV_CLIPBOARD_ReadProperty(w, prop, &lpdata, &cbytes)) @@ -1174,9 +1174,9 @@ HANDLE X11DRV_CLIPBOARD_ImportXAString(W HANDLE X11DRV_CLIPBOARD_ImportUTF8(Window w, Atom prop) { LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; LPSTR lpstr; - UINT i, inlcount = 0; + unsigned long i, inlcount = 0; HANDLE hUnicodeText = 0; if (!X11DRV_CLIPBOARD_ReadProperty(w, prop, &lpdata, &cbytes)) @@ -1297,7 +1297,7 @@ HANDLE X11DRV_CLIPBOARD_ImportXAPIXMAP(W HWND hwnd; HDC hdc; LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; Pixmap *pPixmap; HANDLE hClipData = 0; @@ -1327,7 +1327,7 @@ HANDLE X11DRV_CLIPBOARD_ImportXAPIXMAP(W HANDLE X11DRV_CLIPBOARD_ImportMetaFilePict(Window w, Atom prop) { LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; HANDLE hClipData = 0; if (X11DRV_CLIPBOARD_ReadProperty(w, prop, &lpdata, &cbytes)) @@ -1351,7 +1351,7 @@ HANDLE X11DRV_CLIPBOARD_ImportMetaFilePi HANDLE X11DRV_CLIPBOARD_ImportEnhMetaFile(Window w, Atom prop) { LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; HANDLE hClipData = 0; if (X11DRV_CLIPBOARD_ReadProperty(w, prop, &lpdata, &cbytes)) @@ -1376,7 +1376,7 @@ HANDLE X11DRV_CLIPBOARD_ImportClipboardD { LPVOID lpClipData; LPBYTE lpdata; - ULONG cbytes; + unsigned long cbytes; HANDLE hClipData = 0; if (X11DRV_CLIPBOARD_ReadProperty(w, prop, &lpdata, &cbytes))
[View Less]
1
0
0
0
Robert Shearman : msi: Fix heap overflow in ITERATE_CreateShortcuts.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 4ac8567497737ae7bc6f2d4fcbfc1a53e0c903ea URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4ac8567497737ae7bc6f2d4…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed Feb 22 16:31:00 2006 +0000 msi: Fix heap overflow in ITERATE_CreateShortcuts. --- dlls/msi/action.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 636f01c..9f342e6 100644 ---
…
[View More]
a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -2815,7 +2815,7 @@ static UINT ITERATE_CreateShortcuts(MSIR { MSIPACKAGE *package = (MSIPACKAGE*)param; LPWSTR target_file, target_folder, filename; - LPCWSTR buffer; + LPCWSTR buffer, extension; MSICOMPONENT *comp; static const WCHAR szlnk[]={'.','l','n','k',0}; IShellLinkW *sl; @@ -2864,8 +2864,14 @@ static UINT ITERATE_CreateShortcuts(MSIR filename = msi_dup_record_field( row, 3 ); reduce_to_longfilename(filename); - if (!strchrW(filename,'.') || strcmpiW(strchrW(filename,'.'),szlnk)) - strcatW(filename,szlnk); + + extension = strchrW(filename,'.'); + if (!extension || strcmpiW(extension,szlnk)) + { + int len = strlenW(filename); + filename = msi_realloc(filename, len * sizeof(WCHAR) + sizeof(szlnk)); + memcpy(filename + len, szlnk, sizeof(szlnk)); + } target_file = build_directory_name(2, target_folder, filename); msi_free(target_folder); msi_free(filename);
[View Less]
1
0
0
0
Robert Shearman : msi: Init size before passing to RegEnumValue.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: ecc5c18f4eb10586a0fcb137d73322fd24c7156a URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ecc5c18f4eb10586a0fcb13…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed Feb 22 16:30:57 2006 +0000 msi: Init size before passing to RegEnumValue. --- dlls/msi/source.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/msi/source.c b/dlls/msi/source.c index e0ed472..779bbc4 100644 --- a/dlls/msi/
…
[View More]
source.c +++ b/dlls/msi/source.c @@ -127,6 +127,7 @@ static UINT find_given_source(HKEY key, { val = NULL; val_size = 0; + size = sizeof(szIndex)/sizeof(szIndex[0]); rc = RegEnumValueW(key, index, szIndex, &size, NULL, NULL, NULL, &val_size); if (rc != ERROR_NO_MORE_ITEMS) {
[View Less]
1
0
0
0
Robert Shearman : msi: Always set a value for intype in ready_volume.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: e664435f50607f708adecee374fdb9f640057834 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e664435f50607f708adecee…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed Feb 22 16:30:54 2006 +0000 msi: Always set a value for intype in ready_volume. Remove a memory leak. --- dlls/msi/files.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 8c381ad..
…
[View More]
b5c80ca 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -345,7 +345,11 @@ static BOOL check_volume(LPCWSTR path, L UINT type; if (!(path[0] && path[1] == ':')) + { + if (intype) + *intype = DRIVE_NO_ROOT_DIR; return TRUE; + } drive[0] = path[0]; drive[1] = path[1]; @@ -355,15 +359,15 @@ static BOOL check_volume(LPCWSTR path, L type = GetDriveTypeW(drive); TRACE("drive is of type %x\n",type); + if (intype) + *intype=type; + if (type == DRIVE_UNKNOWN || type == DRIVE_NO_ROOT_DIR || type == DRIVE_FIXED || type == DRIVE_RAMDISK) return TRUE; GetVolumeInformationW(drive, name, MAX_PATH, NULL, NULL, NULL, NULL, 0); TRACE("Drive contains %s\n", debugstr_w(name)); - volume = strdupW(name); - if (*intype) - *intype=type; return (strcmpiW(want_volume,name)==0); }
[View Less]
1
0
0
0
Robert Shearman : msi: Fix heap overflow in save_string_table.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 66c9cbbe0fd23d52a500d4d276ee8743c87fa336 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=66c9cbbe0fd23d52a500d4d…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed Feb 22 16:30:50 2006 +0000 msi: Fix heap overflow in save_string_table. Fix heap overflow caused by not accounting for the dummy first item, which contains the codepage. --- dlls/msi/table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
…
[View More]
diff --git a/dlls/msi/table.c b/dlls/msi/table.c index a3becc6..7b4128b 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -755,7 +755,7 @@ static UINT save_string_table( MSIDATABA /* construct the new table in memory first */ datasize = msi_string_totalsize( db->strings, &count ); - poolsize = count*2*sizeof(USHORT); + poolsize = (count + 1)*2*sizeof(USHORT); pool = msi_alloc( poolsize ); if( ! pool )
[View Less]
1
0
0
0
Robert Shearman : ole: Make the CoCreateInstance test succeed.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 6c529a72737fdf54eac63faaedd36d46e720d06d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6c529a72737fdf54eac63fa…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed Feb 22 16:26:25 2006 +0000 ole: Make the CoCreateInstance test succeed. Move the uninitialized apartment check after zeroing out the return value. --- dlls/ole32/compobj.c | 12 ++++++------ dlls/ole32/tests/compobj.c | 2 -- 2 files changed, 6
…
[View More]
insertions(+), 8 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index a757adb..67c8655 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1836,12 +1836,6 @@ HRESULT WINAPI CoCreateInstance( TRACE("(rclsid=%s, pUnkOuter=%p, dwClsContext=%08lx, riid=%s, ppv=%p)\n", debugstr_guid(rclsid), pUnkOuter, dwClsContext, debugstr_guid(iid), ppv); - if (!COM_CurrentApt()) - { - ERR("apartment not initialised\n"); - return CO_E_NOTINITIALIZED; - } - /* * Sanity check */ @@ -1853,6 +1847,12 @@ HRESULT WINAPI CoCreateInstance( */ *ppv = 0; + if (!COM_CurrentApt()) + { + ERR("apartment not initialised\n"); + return CO_E_NOTINITIALIZED; + } + /* * The Standard Global Interface Table (GIT) object is a process-wide singleton. * Rather than create a class factory, we can just check for it here diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c index 8882d28..f1f97cf 100644 --- a/dlls/ole32/tests/compobj.c +++ b/dlls/ole32/tests/compobj.c @@ -88,9 +88,7 @@ static void test_CoCreateInstance(void) IUnknown *pUnk = (IUnknown *)0xdeadbeef; HRESULT hr = CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void **)&pUnk); ok(hr == CO_E_NOTINITIALIZED, "CoCreateInstance should have return CO_E_NOTINITIALIZED instead of 0x%08lx", hr); - todo_wine { ok(pUnk == NULL, "CoCreateInstance should have changed the passed in pointer to NULL, instead of %p\n", pUnk); - } OleInitialize(NULL); hr = CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void **)&pUnk);
[View Less]
1
0
0
0
Brian Chang : riched20: EM_SETOPTIONS/EM_GETOPTIONS base implementation.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 8f6ba475e80592867be6927a3a5a83377add4630 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8f6ba475e80592867be6927…
Author: Brian Chang <brianch(a)seas.ucla.edu> Date: Tue Feb 21 13:49:19 2006 -0800 riched20: EM_SETOPTIONS/EM_GETOPTIONS base implementation. ECO_READONLY implemented and tested. --- dlls/riched20/editor.c | 59 +++++++++++++++++++++++++++++++++++++++--- dlls/riched20/tests/editor.c | 50 +++++++++++++++
…
[View More]
+++++++++++++++++++++ 2 files changed, 105 insertions(+), 4 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 496210e..05e84cb 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -56,7 +56,7 @@ + EM_GETLINECOUNT returns number of rows, not of paragraphs + EM_GETMODIFY - EM_GETOLEINTERFACE - - EM_GETOPTIONS + + EM_GETOPTIONS + EM_GETPARAFORMAT - EM_GETPASSWORDCHAR 2.0 - EM_GETPUNCTUATION 1.0asian @@ -102,7 +102,7 @@ - EM_SETLIMITTEXT + EM_SETMODIFY (not sure if implementation is correct) - EM_SETOLECALLBACK - - EM_SETOPTIONS + + EM_SETOPTIONS (partially implemented) - EM_SETPALETTE 2.0 + EM_SETPARAFORMAT - EM_SETPASSWORDCHAR 2.0 @@ -1325,7 +1325,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND UNSUPPORTED_MSG(EM_GETLIMITTEXT) UNSUPPORTED_MSG(EM_GETLINE) /* UNSUPPORTED_MSG(EM_GETOLEINTERFACE) separate stub */ - UNSUPPORTED_MSG(EM_GETOPTIONS) UNSUPPORTED_MSG(EM_GETPASSWORDCHAR) UNSUPPORTED_MSG(EM_GETREDONAME) UNSUPPORTED_MSG(EM_GETTEXTMODE) @@ -1341,7 +1340,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND UNSUPPORTED_MSG(EM_SETEDITSTYLE) UNSUPPORTED_MSG(EM_SETFONTSIZE) UNSUPPORTED_MSG(EM_SETLANGOPTIONS) - UNSUPPORTED_MSG(EM_SETOPTIONS) UNSUPPORTED_MSG(EM_SETPALETTE) UNSUPPORTED_MSG(EM_SETPASSWORDCHAR) UNSUPPORTED_MSG(EM_SETSCROLLPOS) @@ -1410,6 +1408,59 @@ LRESULT WINAPI RichEditANSIWndProc(HWND case EM_REDO: ME_Redo(editor); return 0; + case EM_GETOPTIONS: + { + /* these flags are equivalent to the ES_* counterparts */ + DWORD mask = ECO_VERTICAL | ECO_AUTOHSCROLL | ECO_AUTOVSCROLL | + ECO_NOHIDESEL | ECO_READONLY | ECO_WANTRETURN; + DWORD settings = GetWindowLongW(hWnd, GWL_STYLE) & mask; + + return settings; + } + case EM_SETOPTIONS: + { + /* these flags are equivalent to ES_* counterparts + * ECO_READONLY is already implemented in the code, only requires + * setting the bit to work + */ + DWORD mask = ECO_VERTICAL | ECO_AUTOHSCROLL | ECO_AUTOVSCROLL | + ECO_NOHIDESEL | ECO_READONLY | ECO_WANTRETURN; + DWORD raw = GetWindowLongW(hWnd, GWL_STYLE); + DWORD settings = mask & raw; + + switch(wParam) + { + case ECOOP_SET: + settings = lParam; + break; + case ECOOP_OR: + settings |= lParam; + break; + case ECOOP_AND: + settings &= lParam; + break; + case ECOOP_XOR: + settings ^= lParam; + } + SetWindowLongW(hWnd, GWL_STYLE, (raw & ~mask) | (settings & mask)); + + if (lParam & ECO_AUTOWORDSELECTION) + FIXME("ECO_AUTOWORDSELECTION not implemented yet!\n"); + if (lParam & ECO_SELECTIONBAR) + FIXME("ECO_SELECTIONBAR not implemented yet!\n"); + if (lParam & ECO_VERTICAL) + FIXME("ECO_VERTICAL not implemented yet!\n"); + if (lParam & ECO_AUTOHSCROLL) + FIXME("ECO_AUTOHSCROLL not implemented yet!\n"); + if (lParam & ECO_AUTOVSCROLL) + FIXME("ECO_AUTOVSCROLL not implemented yet!\n"); + if (lParam & ECO_NOHIDESEL) + FIXME("ECO_NOHIDESEL not implemented yet!\n"); + if (lParam & ECO_WANTRETURN) + FIXME("ECO_WANTRETURN not implemented yet!\n"); + + return settings; + } case EM_SETSEL: { ME_InvalidateSelection(editor); diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index b650785..814fc1c 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -488,6 +488,54 @@ static void test_TM_PLAINTEXT() DestroyWindow(hwndRichEdit); } +/* FIXME: Extra '\r' appended at end of gotten text*/ +static void test_WM_GETTEXT() +{ + HWND hwndRichEdit = new_richedit(NULL); + static const char text[] = "Hello. My name is RichEdit!"; + char buffer[1024] = {0}; + int result; + + SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text); + SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); + result = strcmp(buffer,text); + todo_wine{ + ok(result == 0, + "WM_GETTEXT: settext and gettext differ. strcmp: %d\n", result); + } +} + +/* FIXME: need to test unimplemented options and robustly test wparam */ +static void test_EM_SETOPTIONS() +{ + HWND hwndRichEdit = new_richedit(NULL); + static const char text[] = "Hello. My name is RichEdit!"; + char buffer[1024] = {0}; + + /* NEGATIVE TESTING - NO OPTIONS SET */ + SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text); + SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, 0); + + /* testing no readonly by sending 'a' to the control*/ + SetFocus(hwndRichEdit); + SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001); + SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); + ok(buffer[0]=='a', + "EM_SETOPTIONS: Text not changed! s1:%s s2:%s\n", text, buffer); + SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text); + + /* READONLY - sending 'a' to the control */ + SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text); + SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, ECO_READONLY); + SetFocus(hwndRichEdit); + SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001); + SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); + ok(buffer[0]==text[0], + "EM_SETOPTIONS: Text changed! s1:%s s2:%s\n", text, buffer); + + DestroyWindow(hwndRichEdit); +} + START_TEST( editor ) { MSG msg; @@ -502,6 +550,8 @@ START_TEST( editor ) test_EM_SCROLLCARET(); test_EM_SETTEXTMODE(); test_TM_PLAINTEXT(); + test_EM_SETOPTIONS(); + test_WM_GETTEXT(); /* Set the environment variable WINETEST_RICHED20 to keep windows * responsive and open for 30 seconds. This is useful for debugging.
[View Less]
1
0
0
0
Juan Lang : crypt32: Tidy up tests.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: 5d3889412d877c8808be38ba94b773eda6383c6c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5d3889412d877c8808be38b…
Author: Juan Lang <juan_lang(a)yahoo.com> Date: Wed Feb 22 08:02:36 2006 -0800 crypt32: Tidy up tests. Fix up encoded data to use BYTE arrays rather than strings, and remove extraneous NULL bytes from the end of some of them --- dlls/crypt32/tests/encode.c | 109 +++++++++++++-------------- dlls/crypt32/tests/
…
[View More]
store.c | 176 ++++++++++++++++++++++--------------------- 2 files changed, 145 insertions(+), 140 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=5d3889412d877c8808b…
[View Less]
1
0
0
0
Juan Lang : crypt32: Add stubs for CryptFindOIDInfo and I_CryptInstallAsn1Module.
by Alexandre Julliard
22 Feb '06
22 Feb '06
Module: wine Branch: refs/heads/master Commit: d740f342b94dd6cf3d4e307c2206665f07fde185 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d740f342b94dd6cf3d4e307…
Author: Juan Lang <juan_lang(a)yahoo.com> Date: Wed Feb 22 07:37:24 2006 -0800 crypt32: Add stubs for CryptFindOIDInfo and I_CryptInstallAsn1Module. Move CryptVerifyMessageSignature stub to main.c. --- dlls/crypt32/cert.c | 10 ---------- dlls/crypt32/crypt32.spec | 3 ++- dlls/crypt32/main.c |
…
[View More]
16 ++++++++++++++++ dlls/crypt32/oid.c | 7 +++++++ 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index c969edb..1b38c40 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -314,16 +314,6 @@ BOOL WINAPI CryptVerifyCertificateSignat return ret; } -BOOL WINAPI CryptVerifyMessageSignature(/*PCRYPT_VERIFY_MESSAGE_PARA*/ void* pVerifyPara, - DWORD dwSignerIndex, const BYTE* pbSignedBlob, DWORD cbSignedBlob, - BYTE* pbDecoded, DWORD* pcbDecoded, PCCERT_CONTEXT* ppSignerCert) -{ - FIXME("stub: %p, %ld, %p, %ld, %p, %p, %p\n", - pVerifyPara, dwSignerIndex, pbSignedBlob, cbSignedBlob, - pbDecoded, pcbDecoded, ppSignerCert); - return FALSE; -} - BOOL WINAPI CertGetEnhancedKeyUsage(PCCERT_CONTEXT pCertContext, DWORD dwFlags, PCERT_ENHKEY_USAGE pUsage, DWORD *pcbUsage) { diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index 1ba868b..abeff35 100644 --- a/dlls/crypt32/crypt32.spec +++ b/dlls/crypt32/crypt32.spec @@ -102,7 +102,7 @@ @ stub CryptExportPKCS8 @ stdcall CryptExportPublicKeyInfo(long long long ptr ptr) @ stdcall CryptExportPublicKeyInfoEx(long long long str long ptr ptr ptr) -@ stub CryptFindOIDInfo +@ stdcall CryptFindOIDInfo(long ptr long) @ stub CryptFormatObject @ stdcall CryptFreeOIDFunctionAddress(long long) @ stub CryptGetAsyncParam @@ -181,6 +181,7 @@ @ stdcall I_CryptGetOssGlobal(long) @ stdcall I_CryptGetTls(long) @ stub I_CryptInsertLruEntry +@ stdcall I_CryptInstallAsn1Module(long long long) @ stdcall I_CryptInstallOssGlobal(long long long) @ stub I_CryptReleaseLruEntry @ stdcall I_CryptSetTls(long ptr) diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c index 4a7de5f..6333f0c 100644 --- a/dlls/crypt32/main.c +++ b/dlls/crypt32/main.c @@ -365,6 +365,12 @@ BOOL WINAPI I_CryptInstallOssGlobal(DWOR return FALSE; } +BOOL WINAPI I_CryptInstallAsn1Module(void *x, DWORD y, DWORD z) +{ + FIXME("%p %08lx %08lx\n", x, y, z); + return TRUE; +} + BOOL WINAPI CryptQueryObject(DWORD dwObjectType, const void* pvObject, DWORD dwExpectedContentTypeFlags, DWORD dwExpectedFormatTypeFlags, DWORD dwFlags, DWORD* pdwMsgAndCertEncodingType, DWORD* pdwContentType, @@ -377,3 +383,13 @@ BOOL WINAPI CryptQueryObject(DWORD dwObj phCertStore, phMsg, ppvContext); return FALSE; } + +BOOL WINAPI CryptVerifyMessageSignature(/*PCRYPT_VERIFY_MESSAGE_PARA*/ void* pVerifyPara, + DWORD dwSignerIndex, const BYTE* pbSignedBlob, DWORD cbSignedBlob, + BYTE* pbDecoded, DWORD* pcbDecoded, PCCERT_CONTEXT* ppSignerCert) +{ + FIXME("stub: %p, %ld, %p, %ld, %p, %p, %p\n", + pVerifyPara, dwSignerIndex, pbSignedBlob, cbSignedBlob, + pbDecoded, pcbDecoded, ppSignerCert); + return FALSE; +} diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c index f9c4be8..f474639 100644 --- a/dlls/crypt32/oid.c +++ b/dlls/crypt32/oid.c @@ -84,6 +84,13 @@ BOOL WINAPI CryptEnumOIDInfo(DWORD dwGro return TRUE; } +PCCRYPT_OID_INFO WINAPI CryptFindOIDInfo(DWORD dwKeyType, void *pvKey, + DWORD dwGroupId) +{ + FIXME("(%ld, %p, %ld): stub\n", dwKeyType, pvKey, dwGroupId); + return NULL; +} + /* There is no free function associated with this; therefore, the sets are * freed when crypt32.dll is unloaded. */
[View Less]
1
0
0
0
← Newer
1
...
8
9
10
11
12
13
14
...
70
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
Results per page:
10
25
50
100
200