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
February 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
4 participants
696 discussions
Start a n
N
ew thread
Ulrich Czekalla : advapi32: Add stub for ObjectDeleteAuditAlarmW.
by Alexandre Julliard
02 Feb '06
02 Feb '06
Module: wine Branch: refs/heads/master Commit: 5ceb274724d310bea692162147c03240fdb1515e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5ceb274724d310bea692162…
Author: Ulrich Czekalla <ulrich(a)codeweavers.com> Date: Thu Feb 2 13:19:11 2006 +0100 advapi32: Add stub for ObjectDeleteAuditAlarmW. --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/security.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 325a7be..61eb2c9 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -419,7 +419,7 @@ @ stdcall ObjectCloseAuditAlarmA(str ptr long) @ stdcall ObjectCloseAuditAlarmW(wstr ptr long) # @ stub ObjectDeleteAuditAlarmA -# @ stub ObjectDeleteAuditAlarmW +@ stdcall ObjectDeleteAuditAlarmW(wstr ptr long) @ stdcall ObjectOpenAuditAlarmA(str ptr str str ptr long long long ptr long long ptr) @ stdcall ObjectOpenAuditAlarmW(wstr ptr wstr wstr ptr long long long ptr long long ptr) @ stdcall ObjectPrivilegeAuditAlarmA(str ptr long long ptr long) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index ff525f1..cd61f53 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -1894,6 +1894,13 @@ BOOL WINAPI ObjectCloseAuditAlarmW(LPCWS return TRUE; } +BOOL WINAPI ObjectDeleteAuditAlarmW(LPCWSTR SubsystemName, LPVOID HandleId, BOOL GenerateOnClose) +{ + FIXME("stub (%s,%p,%x)\n", debugstr_w(SubsystemName), HandleId, GenerateOnClose); + + return TRUE; +} + BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName, LPVOID HandleId, LPSTR ObjectTypeName, LPSTR ObjectName, PSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE ClientToken, DWORD DesiredAccess, DWORD GrantedAccess, PPRIVILEGE_SET Privileges, BOOL ObjectCreation, BOOL AccessGranted,
1
0
0
0
Ulrich Czekalla : oleaut32: Prevent freeing of random memory.
by Alexandre Julliard
02 Feb '06
02 Feb '06
Module: wine Branch: refs/heads/master Commit: 37f1d4cb54d568bdb3bdc5a00752e62419628d67 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=37f1d4cb54d568bdb3bdc5a…
Author: Ulrich Czekalla <ulrich(a)codeweavers.com> Date: Thu Feb 2 13:18:43 2006 +0100 oleaut32: Prevent freeing of random memory. Don't assign type to variant until we're sure we are assigning a value. --- dlls/oleaut32/variant.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index 4a2dd90..a40f3d0 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -2952,7 +2952,6 @@ HRESULT WINAPI VarAdd(LPVARIANT left, LP /* Do the math */ hres = S_OK; - V_VT(&tv) = tvt; V_VT(result) = resvt; switch (tvt) { case VT_DECIMAL: @@ -2973,10 +2972,13 @@ HRESULT WINAPI VarAdd(LPVARIANT left, LP V_VT(result) = VT_R8; V_R8(result) = r8res; goto end; - } else + } else { + V_VT(&tv) = tvt; V_I8(&tv) = V_I8(&lv) + V_I8(&rv); + } break; case VT_R8: + V_VT(&tv) = tvt; /* FIXME: overflow detection */ V_R8(&tv) = V_R8(&lv) + V_R8(&rv); break;
1
0
0
0
Kevin Koltzau : riched20: Handle context menu.
by Alexandre Julliard
02 Feb '06
02 Feb '06
Module: wine Branch: refs/heads/master Commit: fc2ce6779eaf8bcda42be384a93daacd0cdfdb19 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=fc2ce6779eaf8bcda42be38…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Thu Feb 2 13:18:20 2006 +0100 riched20: Handle context menu. --- dlls/riched20/editor.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 9b741a8..5111807 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -852,6 +852,29 @@ ME_KeyDown(ME_TextEditor *editor, WORD n return FALSE; } +static void ME_ShowContextMenu(ME_TextEditor *editor, int x, int y) +{ + CHARRANGE selrange; + HMENU menu; + int seltype = 0; + if(!editor->lpOleCallback) + return; + ME_GetSelection(editor, (int *)&selrange.cpMin, (int *)&selrange.cpMax); + if(selrange.cpMin == selrange.cpMax) + seltype |= SEL_EMPTY; + else + { + /* FIXME: Handle objects */ + seltype |= SEL_TEXT; + if(selrange.cpMax-selrange.cpMin > 1) + seltype |= SEL_MULTICHAR; + } + if(SUCCEEDED(IRichEditOleCallback_GetContextMenu(editor->lpOleCallback, seltype, NULL, &selrange, &menu))) + { + TrackPopupMenu(menu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, x, y, 0, GetParent(editor->hWnd), NULL); + DestroyMenu(menu); + } +} ME_TextEditor *ME_MakeEditor(HWND hWnd) { ME_TextEditor *ed = ALLOC_OBJ(ME_TextEditor); @@ -1842,6 +1865,9 @@ LRESULT WINAPI RichEditANSIWndProc(HWND case WM_LBUTTONDBLCLK: ME_SelectWord(editor); break; + case WM_CONTEXTMENU: + ME_ShowContextMenu(editor, (short)LOWORD(lParam), (short)HIWORD(lParam)); + break; case WM_PAINT: if (editor->bRedraw) {
1
0
0
0
Fatih Aşıcı : start.exe: build_args now returns the correct string when no parameter
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: 1c9e1f3473c7f29998d03c42e88c0fab6d5c69cb URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=1c9e1f3473c7f29998d03c4…
Author: Fatih Aşıcı <fasici(a)linux-sevenler.org> Date: Wed Feb 1 13:50:52 2006 +0100 start.exe: build_args now returns the correct string when no parameter is passed. --- programs/start/start.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/programs/start/start.c b/programs/start/start.c index 3effed6..0aee916 100644 --- a/programs/start/start.c +++ b/programs/start/start.c @@ -109,6 +109,7 @@ static char *build_args( int argc, char for (i = 0; i < argc; i++ ) len += strlen(argv[i]) + 1; ret = HeapAlloc( GetProcessHeap(), 0, len ); + ret[0] = 0; for (i = 0, p = ret; i < argc; i++ ) p += sprintf(p, " %s", argv[i]);
1
0
0
0
Fatih Aşıcı : x11drv: Added Turkish F keyboard layout.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: a8ef244b89d37d2cfd084f07ce56460706a48725 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a8ef244b89d37d2cfd084f0…
Author: Fatih Aşıcı <fasici(a)linux-sevenler.org> Date: Wed Feb 1 13:50:37 2006 +0100 x11drv: Added Turkish F keyboard layout. --- dlls/x11drv/keyboard.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/dlls/x11drv/keyboard.c b/dlls/x11drv/keyboard.c index 3df4162..f645b70 100644 --- a/dlls/x11drv/keyboard.c +++ b/dlls/x11drv/keyboard.c @@ -799,6 +799,16 @@ static const char main_key_TR[MAIN_LEN][ "<>" }; +/*** Turkish F keyboard layout (setxkbmap trf) */ +static const char main_key_TR_F[MAIN_LEN][4] = +{ +"+*","1!","2\"","3^#","4$","5%","6&","7'","8(","9)","0=","/?","-_", +"fF","gG","��","�I","oO","dD","rR","nN","hH","pP","qQ","wW", +"uU","i�","eE","aA","��","tT","kK","mM","lL","yY","��","xX", +"jJ","��","vV","cC","��","zZ","sS","bB",".:",",;", +"<>" +}; + /*** Israelian keyboard layout (setxkbmap us,il) */ static const char main_key_IL[MAIN_LEN][4] = { @@ -948,6 +958,7 @@ static const struct { {0x0427, "Lithuanian (Baltic) keyboard layout", &main_key_LT_B, &main_key_scan_qwerty, &main_key_vkey_qwerty}, {0x041f, "Turkish keyboard layout", &main_key_TK, &main_key_scan_qwerty, &main_key_vkey_qwerty}, {0x041f, "Turkish keyboard layout tr", &main_key_TR, &main_key_scan_qwerty, &main_key_vkey_qwerty}, + {0x041f, "Turkish keyboard layout trf", &main_key_TR_F, &main_key_scan_qwerty, &main_key_vkey_qwerty}, {0x040d, "Israelian keyboard layout", &main_key_IL, &main_key_scan_qwerty, &main_key_vkey_qwerty}, {0x040d, "Israelian phonetic keyboard layout", &main_key_IL_phonetic, &main_key_scan_qwerty, &main_key_vkey_qwerty}, {0x040d, "Israelian Saharon keyboard layout", &main_key_IL_saharon, &main_key_scan_qwerty, &main_key_vkey_qwerty},
1
0
0
0
Juan Lang : crypt32: Implement CertRDNValueToStrA and CertNameToStrA, with tests.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: 6a3b3f8635669ddf6fdae8d2d6a1b7c1a9ab3771 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6a3b3f8635669ddf6fdae8d…
Author: Juan Lang <juan(a)codeweavers.com> Date: Wed Feb 1 13:50:18 2006 +0100 crypt32: Implement CertRDNValueToStrA and CertNameToStrA, with tests. --- dlls/crypt32/Makefile.in | 1 dlls/crypt32/crypt32.spec | 8 + dlls/crypt32/str.c | 176 +++++++++++++++++++++++++++++ dlls/crypt32/tests/.gitignore | 1 dlls/crypt32/tests/Makefile.in | 3 dlls/crypt32/tests/str.c | 245 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 429 insertions(+), 5 deletions(-) create mode 100644 dlls/crypt32/str.c create mode 100644 dlls/crypt32/tests/str.c Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=6a3b3f8635669ddf6fd…
1
0
0
0
Kevin Koltzau : riched20: Implement EM_SETOLECALLBACK.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: 7f84cc48f3c6b12cc64416a28e35577e3db405df URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7f84cc48f3c6b12cc64416a…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Wed Feb 1 13:05:40 2006 +0100 riched20: Implement EM_SETOLECALLBACK. --- dlls/riched20/editor.c | 13 ++++++++++--- dlls/riched20/editstr.h | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 19c7b3f..9b741a8 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -223,8 +223,6 @@ #include "editor.h" #include "commdlg.h" -#include "ole2.h" -#include "richole.h" #include "winreg.h" #define NO_SHLWAPI_STREAM #include "shlwapi.h" @@ -889,6 +887,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) ed->bRedraw = TRUE; ed->nInvalidOfs = -1; ed->pfnWordBreak = NULL; + ed->lpOleCallback = NULL; GetClientRect(hWnd, &ed->rcFormat); for (i=0; i<HFONT_CACHE_SIZE; i++) { @@ -985,6 +984,8 @@ void ME_DestroyEditor(ME_TextEditor *edi DeleteObject(editor->pFontCache[i].hFont); } DeleteObject(editor->hbrBackground); + if(editor->lpOleCallback) + IUnknown_Release(editor->lpOleCallback); FREE_OBJ(editor); } @@ -1206,7 +1207,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND UNSUPPORTED_MSG(EM_SETEDITSTYLE) UNSUPPORTED_MSG(EM_SETFONTSIZE) UNSUPPORTED_MSG(EM_SETLANGOPTIONS) - UNSUPPORTED_MSG(EM_SETOLECALLBACK) UNSUPPORTED_MSG(EM_SETOPTIONS) UNSUPPORTED_MSG(EM_SETPALETTE) UNSUPPORTED_MSG(EM_SETPASSWORDCHAR) @@ -2043,6 +2043,13 @@ LRESULT WINAPI RichEditANSIWndProc(HWND FIXME("EM_GETOLEINTERFACE %p: stub\n", ppvObj); return CreateIRichEditOle(ppvObj); } + case EM_SETOLECALLBACK: + if(editor->lpOleCallback) + IUnknown_Release(editor->lpOleCallback); + editor->lpOleCallback = (LPRICHEDITOLECALLBACK)lParam; + if(editor->lpOleCallback) + IUnknown_AddRef(editor->lpOleCallback); + return TRUE; case EM_GETWORDBREAKPROC: return (LRESULT)editor->pfnWordBreak; case EM_SETWORDBREAKPROC: diff --git a/dlls/riched20/editstr.h b/dlls/riched20/editstr.h index 919dd02..d27eab9 100644 --- a/dlls/riched20/editstr.h +++ b/dlls/riched20/editstr.h @@ -38,6 +38,9 @@ #include <winuser.h> #include <richedit.h> #include <commctrl.h> +#define COBJMACROS +#include <ole2.h> +#include <richole.h> #include "wine/debug.h" @@ -289,6 +292,7 @@ typedef struct tagME_TextEditor BOOL bRedraw; int nInvalidOfs; EDITWORDBREAKPROCW pfnWordBreak; + LPRICHEDITOLECALLBACK lpOleCallback; } ME_TextEditor; typedef struct tagME_Context
1
0
0
0
Dmitry Timoshkov : wine.inf: Remove %1 from [http|htmlfile]\shell\open\command.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: f03c86a27387cd1dc27c371d52a7c72d83b70481 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f03c86a27387cd1dc27c371…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Wed Feb 1 12:32:21 2006 +0100 wine.inf: Remove %1 from [http|htmlfile]\shell\open\command. --- tools/wine.inf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/wine.inf b/tools/wine.inf index 5b6e8d6..8a81989 100644 --- a/tools/wine.inf +++ b/tools/wine.inf @@ -97,7 +97,7 @@ HKCR,exefile\shell\open\command,,,"""%1" HKCR,folder\shell\open\ddeexec,,,"[ViewFolder("%l", %I, %S)]" HKCR,folder\shell\open\ddeexec,"NoActivateHandler",,"" HKCR,folder\shell\open\ddeexec\application,,,"Folders" -HKCR,htmlfile\shell\open\command,,,"winebrowser %1" +HKCR,htmlfile\shell\open\command,,,"winebrowser" HKCR,lnkfile,"NeverShowExt",,"" HKCR,lnkfile,"IsShortcut",,"yes" HKCR,lnkfile\CLSID,,,"{00021401-0000-0000-C000-000000000046}" @@ -109,7 +109,7 @@ HKCR,Msi.Package\shell\Repair\command,,, HKCR,Msi.Package\shell\Uninstall\command,,,"msiexec /x %1" HKCR,txtfile\shell\open\command,,,"%11%\notepad.exe %1" HKCR,txtfile\shell\print\command,,,"%11%\notepad.exe /p %1" -HKCR,http\shell\open\command,,,"winebrowser %1" +HKCR,http\shell\open\command,,,"winebrowser" HKCR,mailto\shell\open\command,,,"winebrowser %1" ; FIXME: the following should be done by the dll registration HKCR,AVIFile\Compressors\auds,,,"{0002000F-0000-0000-C000-000000000046}"
1
0
0
0
Detlef Riekenberg : winspool: Empty string as environment is valid, with tests.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: 366f452b91e9399217e90a3a441aa91e50fd4c61 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=366f452b91e9399217e90a3…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Feb 1 12:32:10 2006 +0100 winspool: Empty string as environment is valid, with tests. --- dlls/winspool/info.c | 9 ++++----- dlls/winspool/tests/info.c | 28 +++++++++++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index d0f51aa..15f0c48 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -204,6 +204,7 @@ static DWORD WINSPOOL_GetOpenedPrinterRe * Success: PTR to printenv_t * * NOTES + * An empty string is handled the same way as NULL. * SetLastEror(ERROR_INVALID_ENVIRONMENT) is called on Failure * */ @@ -218,7 +219,7 @@ static const printenv_t * validate_envW unsigned int i; TRACE("testing %s\n", debugstr_w(env)); - if (env) + if (env && env[0]) { for (i = 0; i < sizeof(all_printenv)/sizeof(all_printenv[0]); i++) { @@ -3399,9 +3400,7 @@ BOOL WINAPI GetPrinterDriverW(HANDLE hPr * "%winsysdir%" is the Value from GetSystemDirectoryW() * * FIXME - *- pName != NULL not supported - *- pEnvironment != NULL not supported - *- Current Implementation returns always "%winsysdir%" + *- Only NULL or "" is supported for pName * */ BOOL WINAPI GetPrinterDriverDirectoryW(LPWSTR pName, LPWSTR pEnvironment, @@ -3413,7 +3412,7 @@ BOOL WINAPI GetPrinterDriverDirectoryW(L TRACE("(%s, %s, %ld, %p, %ld, %p)\n", debugstr_w(pName), debugstr_w(pEnvironment), Level, pDriverDirectory, cbBuf, pcbNeeded); - if(pName != NULL) { + if(pName != NULL && pName[0]) { FIXME("pName unsupported: %s\n", debugstr_w(pName)); SetLastError(ERROR_INVALID_PARAMETER); return FALSE; diff --git a/dlls/winspool/tests/info.c b/dlls/winspool/tests/info.c index 4b11829..8041f5c 100644 --- a/dlls/winspool/tests/info.c +++ b/dlls/winspool/tests/info.c @@ -94,7 +94,7 @@ static LPSTR find_default_printer(VOID) } -static void test_default_printer(void) +static void test_GetDefaultPrinter(void) { BOOL retval; DWORD exact = DEFAULT_PRINTER_SIZE; @@ -171,8 +171,9 @@ static void test_default_printer(void) exact, size); } -static void test_printer_directory(void) -{ LPBYTE buffer = NULL; +static void test_GetPrinterDriverDirectory(void) +{ + LPBYTE buffer = NULL; DWORD cbBuf = 0, pcbNeeded = 0; BOOL res; @@ -305,10 +306,23 @@ static void test_printer_directory(void) "'len > 0' or '0' with ERROR_INVALID_ENVIRONMENT)\n", res, GetLastError(), lstrlenA((char *)buffer)); + /* A Setup-Programm (PDFCreator_0.8.0) use empty strings */ + SetLastError(MAGIC_DEAD); + res = GetPrinterDriverDirectoryA("", "", 1, buffer, cbBuf*2, &pcbNeeded); + ok(res, "returned %d with %ld (expected '!=0')\n", res, GetLastError() ); + + SetLastError(MAGIC_DEAD); + res = GetPrinterDriverDirectoryA(NULL, "", 1, buffer, cbBuf*2, &pcbNeeded); + ok(res, "returned %d with %ld (expected '!=0')\n", res, GetLastError() ); + + SetLastError(MAGIC_DEAD); + res = GetPrinterDriverDirectoryA("", NULL, 1, buffer, cbBuf*2, &pcbNeeded); + ok(res, "returned %d with %ld (expected '!=0')\n", res, GetLastError() ); + HeapFree( GetProcessHeap(), 0, buffer); } -static void test_openprinter(void) +static void test_OpenPrinter(void) { PRINTER_DEFAULTSA defaults; HANDLE hprinter; @@ -458,7 +472,7 @@ START_TEST(info) find_default_printer(); - test_default_printer(); - test_printer_directory(); - test_openprinter(); + test_GetDefaultPrinter(); + test_GetPrinterDriverDirectory(); + test_OpenPrinter(); }
1
0
0
0
Detlef Riekenberg : winspool.h: Add missing declarations.
by Alexandre Julliard
01 Feb '06
01 Feb '06
Module: wine Branch: refs/heads/master Commit: c30ac0772d08b57f060f921037d15648f7b9fd77 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c30ac0772d08b57f060f921…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Feb 1 12:31:55 2006 +0100 winspool.h: Add missing declarations. --- include/winspool.h | 172 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 159 insertions(+), 13 deletions(-) diff --git a/include/winspool.h b/include/winspool.h index 884da16..6b551aa 100644 --- a/include/winspool.h +++ b/include/winspool.h @@ -28,20 +28,20 @@ extern "C" { /* DEFINES */ -#define PRINTER_ATTRIBUTE_QUEUED 0x00000001 -#define PRINTER_ATTRIBUTE_DIRECT 0x00000002 -#define PRINTER_ATTRIBUTE_DEFAULT 0x00000004 -#define PRINTER_ATTRIBUTE_SHARED 0x00000008 -#define PRINTER_ATTRIBUTE_NETWORK 0x00000010 -#define PRINTER_ATTRIBUTE_HIDDEN 0x00000020 -#define PRINTER_ATTRIBUTE_LOCAL 0x00000040 - +#define PRINTER_ATTRIBUTE_QUEUED 0x00000001 +#define PRINTER_ATTRIBUTE_DIRECT 0x00000002 +#define PRINTER_ATTRIBUTE_DEFAULT 0x00000004 +#define PRINTER_ATTRIBUTE_SHARED 0x00000008 +#define PRINTER_ATTRIBUTE_NETWORK 0x00000010 +#define PRINTER_ATTRIBUTE_HIDDEN 0x00000020 +#define PRINTER_ATTRIBUTE_LOCAL 0x00000040 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ 0x00000080 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS 0x00000100 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST 0x00000200 - -#define PRINTER_ATTRIBUTE_WORK_OFFLINE 0x00000400 -#define PRINTER_ATTRIBUTE_ENABLE_BIDI 0x00000800 +#define PRINTER_ATTRIBUTE_WORK_OFFLINE 0x00000400 +#define PRINTER_ATTRIBUTE_ENABLE_BIDI 0x00000800 +#define PRINTER_ATTRIBUTE_RAW_ONLY 0x00001000 +#define PRINTER_ATTRIBUTE_PUBLISHED 0x00002000 #define PRINTER_CONTROL_PAUSE 1 #define PRINTER_CONTROL_RESUME 2 @@ -69,6 +69,7 @@ extern "C" { #define PRINTER_ENUM_ICON6 0x00200000 #define PRINTER_ENUM_ICON7 0x00400000 #define PRINTER_ENUM_ICON8 0x00800000 +#define PRINTER_ENUM_HIDE 0x01000000 /* various printer statuses */ @@ -301,7 +302,7 @@ DECL_WINELIB_TYPE_AW(PDRIVER_INFO_1) DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_1) typedef struct _DRIVER_INFO_2A { - DWORD cVersion; + DWORD cVersion; LPSTR pName; LPSTR pEnvironment; LPSTR pDriverPath; @@ -310,7 +311,7 @@ typedef struct _DRIVER_INFO_2A { } DRIVER_INFO_2A, *PDRIVER_INFO_2A, *LPDRIVER_INFO_2A; typedef struct _DRIVER_INFO_2W { - DWORD cVersion; + DWORD cVersion; LPWSTR pName; LPWSTR pEnvironment; LPWSTR pDriverPath; @@ -352,6 +353,112 @@ DECL_WINELIB_TYPE_AW(DRIVER_INFO_3) DECL_WINELIB_TYPE_AW(PDRIVER_INFO_3) DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_3) +typedef struct _DRIVER_INFO_4A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; + LPSTR pszzPreviousNames; +} DRIVER_INFO_4A, *PDRIVER_INFO_4A, *LPDRIVER_INFO_4A; + +typedef struct _DRIVER_INFO_4W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; + LPWSTR pszzPreviousNames; +} DRIVER_INFO_4W, *PDRIVER_INFO_4W, *LPDRIVER_INFO_4W; + +DECL_WINELIB_TYPE_AW(DRIVER_INFO_4) +DECL_WINELIB_TYPE_AW(PDRIVER_INFO_4) +DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_4) + + +typedef struct _DRIVER_INFO_5A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + DWORD dwDriverAttributes; + DWORD dwConfigVersion; + DWORD dwDriverVersion; +} DRIVER_INFO_5A, *PDRIVER_INFO_5A, *LPDRIVER_INFO_5A; + +typedef struct _DRIVER_INFO_5W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + DWORD dwDriverAttributes; + DWORD dwConfigVersion; + DWORD dwDriverVersion; +} DRIVER_INFO_5W, *PDRIVER_INFO_5W, *LPDRIVER_INFO_5W; + +DECL_WINELIB_TYPE_AW(DRIVER_INFO_5) +DECL_WINELIB_TYPE_AW(PDRIVER_INFO_5) +DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_5) + +typedef struct _DRIVER_INFO_6A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; + LPSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPSTR pszMfgName; + LPSTR pszOEMUrl; + LPSTR pszHardwareID; + LPSTR pszProvider; +} DRIVER_INFO_6A, *PDRIVER_INFO_6A, *LPDRIVER_INFO_6A; + +typedef struct _DRIVER_INFO_6W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; + LPWSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPWSTR pszMfgName; + LPWSTR pszOEMUrl; + LPWSTR pszHardwareID; + LPWSTR pszProvider; +} DRIVER_INFO_6W, *PDRIVER_INFO_6W, *LPDRIVER_INFO_6W; + +DECL_WINELIB_TYPE_AW(DRIVER_INFO_6) +DECL_WINELIB_TYPE_AW(PDRIVER_INFO_6) +DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_6) + + typedef struct _PRINTER_INFO_1A { DWORD Flags; LPSTR pDescription; @@ -471,6 +578,45 @@ typedef struct _PRINTER_INFO_6 { DWORD dwStatus; } PRINTER_INFO_6, *PPRINTER_INFO_6, *LPPRINTER_INFO_6; +typedef struct _PRINTER_INFO_7A { + LPSTR pszObjectGUID; + DWORD dwAction; +} PRINTER_INFO_7A, *PPRINTER_INFO_7A, *LPPRINTER_INFO_7A; + +typedef struct _PRINTER_INFO_7W { + LPWSTR pszObjectGUID; + DWORD dwAction; +} PRINTER_INFO_7W, *PPRINTER_INFO_7W, *LPPRINTER_INFO_7W; + +DECL_WINELIB_TYPE_AW(PRINTER_INFO_7) +DECL_WINELIB_TYPE_AW(PPRINTER_INFO_7) +DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_7) + +typedef struct _PRINTER_INFO_8A { + LPDEVMODEA pDevMode; +} PRINTER_INFO_8A, *PPRINTER_INFO_8A, *LPPRINTER_INFO_8A; + +typedef struct _PRINTER_INFO_8W { + LPDEVMODEW pDevMode; +} PRINTER_INFO_8W, *PPRINTER_INFO_8W, *LPPRINTER_INFO_8W; + +DECL_WINELIB_TYPE_AW(PRINTER_INFO_8) +DECL_WINELIB_TYPE_AW(PPRINTER_INFO_8) +DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_8) + +typedef struct _PRINTER_INFO_9A { + LPDEVMODEA pDevMode; +} PRINTER_INFO_9A, *PPRINTER_INFO_9A, *LPPRINTER_INFO_9A; + +typedef struct _PRINTER_INFO_9W { + LPDEVMODEW pDevMode; +} PRINTER_INFO_9W, *PPRINTER_INFO_9W, *LPPRINTER_INFO_9W; + +DECL_WINELIB_TYPE_AW(PRINTER_INFO_9) +DECL_WINELIB_TYPE_AW(PPRINTER_INFO_9) +DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_9) + + typedef struct _JOB_INFO_1A { DWORD JobId; LPSTR pPrinterName;
1
0
0
0
← Newer
1
...
66
67
68
69
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