--- 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
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
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
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
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
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
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
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
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.
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
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
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,
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
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
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
15 matches
Mail list logo