Murphy, Ged (Bolton) schrieb:
What makes you sure ZwOpenKey is failing, and not one of the functions above it? You should use error checking where nessesary.
Ged.
NT_SUCCESS(RtlFormatCurrentUserKeyPath(...)) is TRUE.
InitializeObjectAttributes is a macro, that cannot fail.
#define InitializeObjectAttributes(p,n,a,r,s) { \ (p)->Length = sizeof(OBJECT_ATTRIBUTES); \ (p)->RootDirectory = (r); \ (p)->Attributes = (a); \ (p)->ObjectName = (n); \ (p)->SecurityDescriptor = (s); \ (p)->SecurityQualityOfService = NULL; \ }
I'll try to find out what ObjectAttributes is initiliazed to, but trunk is crashing, when compiled with debug = 1.