Hi:
Recently I've been having troubles with the GetVarDesc function. It's
supposed to return the description
of a COM server's property(given the property index), but instead, it
returns the description of one of the methods
of the COM server.
I've realized that the varlist list of the ITypeInfo class is filled with
the COM server methods, and it must be filled with
properties.
I think the problem is in MSFT_DoVars function, which is the responsible of
the creation of varlist. I've fixed the …
[View More]problem
just actualizing the offset variable to point to the begin of the variables
description, instead of the begin of the
functions description (the bold line below), I don't know if this is the
right place to make the correction, but definitely It has solved
my problem.
..............................
offset = offset + (cFuncs*sizeof(INT));
for(i=0;i<cVars;i++){
..............................
I hope this could be of value for someone...
Mikel.
[View Less]
Hans Leidekker wrote:
+NTSTATUS WINAPI SystemFunction006( LPCSTR password, LPSTR hash )
+{
+ unsigned char buffer[16];
+
+ hash = CRYPT_LMhash( buffer, password, strlen(password) );
+
+ return STATUS_SUCCESS;
+}
I don't think this will work properly. The returned pointer from CRYPT_LMHash()
will never be passed out to the caller of the function. There should be
probably a function call before the return of the function along the lines
of
memcpy(hash, buffer, 16);
The question here …
[View More]would also be why use an intermediate buffer at all in the
first place?
Also the use of strcmp() for comparing a hash in the according test seems a
little misplaced to me.
Or is a DES hash guaranteed to never contain 0x00 bytes? It doesn't occur in
the test case so it is not a big problem in this case but principially it
seems not right to me.
Rolf Kalbermatter
[View Less]