Re: Winspool errors with notepad

2003-02-06 Thread Sylvain Petreolle
--- Dmitry Timoshkov [EMAIL PROTECTED] a écrit : Duane Clark [EMAIL PROTECTED] wrote: In an attempt to revive this thread (since it broke printing for me too), it appears that if a NULL pointer is passed to: RtlCreateUnicodeStringFromAsciiz(pNameW,pName); then it returns an

Re: Winspool errors with notepad

2003-02-06 Thread Dmitry Timoshkov
Sylvain Petreolle [EMAIL PROTECTED] wrote: In an attempt to revive this thread (since it broke printing for me too), it appears that if a NULL pointer is passed to: RtlCreateUnicodeStringFromAsciiz(pNameW,pName); then it returns an empty string in pNameW.buffer, rather than

Re: Winspool errors with notepad

2003-02-06 Thread Sylvain Petreolle
Are you really saying that this function is tranforming every NULL string pointer to another one returning \0 ? This is nonsense. That's correct behaviour. We need to make checks for NULL everywhere when appropriate before RtlCreateUnicodeStringFromAsciiz calls to avoid this kind of

Re: Winspool errors with notepad

2003-02-05 Thread Duane Clark
Sylvain Petreolle wrote: trace:winspool:AddPrinterA ((null),2,0x407c2c1c): stub trace:winspool:DEVMODEdupAtoW trace:winspool:AddPrinterW (L,2,0x4026ac58) Following these debug messages, we see that the name of the server on which the server is installed changes fromNULL to . In an attempt to

Re: Winspool errors with notepad

2003-02-05 Thread Sylvain Petreolle
Is really this function in Windows API ? a search with google returns only 40 answers. msdn doesnt even know it. RtlCreateUnicodeStringFromAsciiz(pNameW,pName); then it returns an empty string in pNameW.buffer, rather than NULL. Since these conversion functions are apparently APIs in

Re: Winspool errors with notepad

2003-02-05 Thread Eric Pouech
Sylvain Petreolle wrote: Is really this function in Windows API ? a search with google returns only 40 answers. msdn doesnt even know it. it's not part of the Win32 API, it's part of ntdll (NT system) and has been documented in winternal.h A+ -- Eric Pouech

Re: Winspool errors with notepad

2003-02-05 Thread Dmitry Timoshkov
Duane Clark [EMAIL PROTECTED] wrote: In an attempt to revive this thread (since it broke printing for me too), it appears that if a NULL pointer is passed to: RtlCreateUnicodeStringFromAsciiz(pNameW,pName); then it returns an empty string in pNameW.buffer, rather than NULL. That's

Re: Winspool errors with notepad

2003-02-02 Thread Sylvain Petreolle
and the the name must be NULL otherwise the function fails. It lies into wine/dlls/winspool/info.c : if(pName != NULL) { ERR(pName = %s - unsupported\n, debugstr_w(pName)); SetLastError(ERROR_INVALID_PARAMETER); return 0; The file was updated to avoid HEAP_strdupAtoW calls

winspool

2002-11-21 Thread Dimitrie O. Paun
Folks, On windows people link to winspool as such: -lwinspool In Wine, we need to do: -lwinspool.drv Obviously, this causes problems. Should we create a winspool - winspool.drv link in dlls/? -- Dimi.

Re: WinSpool Ordinal Addition

2002-01-11 Thread Alexandre Julliard
Dmitry Timoshkov [EMAIL PROTECTED] writes: It should be clear even for you, since you have submitted two different patches with ordinal 201 assigned to absolutely different functions and presumably both variants have worked for you. Apparently just adding 100 stub OrdinalBase should work

Re: WinSpool Ordinal Addition

2002-01-10 Thread Mark G. Adams
is 203). I've added the ASCII and Unicode implementations of that function to winspool in the attached patch. The ASCII version has been tested; I'd appreciate it if you could take a glance at the Unicode version and see if I got the conversions correct. The application will now open

Re: WinSpool Ordinal Addition

2002-01-10 Thread Dmitry Timoshkov
Mark G. Adams [EMAIL PROTECTED] wrote: Here's the message output on startup if those functions are not exported at the expected ordinals: err:win32:PE_fixup_imports No implementation for WINSPOOL.DRV.201 imported from C:\OmniMark\EnterpriseStudio6_1_1\OmniMark-Enterprise-Studio.exe,

Re: WinSpool Ordinal Addition

2002-01-10 Thread Mark G. Adams
On January 11, 2002 12:21 am, Dmitry Timoshkov wrote: This application will not work either under win9x or win2000 because they have different functions assigned to ordinal 201: win95 OSR2 PE and win98 SE: StartDocPrinterA win2000: GetDefaultPrinterA Interesting. At any rate, I'll pass this

Re: WinSpool Ordinal Addition

2002-01-10 Thread Dmitry Timoshkov
Mark G. Adams [EMAIL PROTECTED] wrote: The fact that it worked with different functions there did surprise me. My assumption (not having a good idea on how ordinal importing works) was that, at this point, it's just checking for the presence of a function but not executing it. Very little

Re: WinSpool Ordinal Addition

2002-01-06 Thread Alexandre Julliard
Mark G. Adams [EMAIL PROTECTED] writes: I came across a program which imports a function from winspool.drv via ordinal instead of via name. Now back in February, a patch from Huw Davies was committed which removed all the ordinals from the spec file for winspool (see http://www.winehq.com