Re: dlls/userenv: fixed stubs GetUserProfileDirectoryW/A (7)

2009-03-10 Thread Andreas Rosenberg
Vitaliy Margolen wrote: +res = RegOpenKeyExW( HKEY_LOCAL_MACHINE, profile_pathname, 0L, KEY_QUERY_VALUE, keyProfileDir ); +res = RegGetValueW( keyProfileDir, profile_subkey, profile_keyname, RRF_RT_ANY, + NULL, buffer, sizePath ); /* RegGetValue

Re: dlls/userenv: fixed stubs GetUserProfileDirectoryW/A (7)

2009-03-07 Thread Vitaliy Margolen
Andreas Rosenberg wrote: Almost there, just few small things left. +TRACE(%p %s %p\n, hToken, lpProfileDir, lpcchSize); Don't print output parameters[lpProfileDir] as string only as a point. Unless it's used as

Re: dlls/userenv: fixed stubs GetUserProfileDirectoryW/A (7)

2009-03-06 Thread Paul Vriens
Andreas Rosenberg wrote: It's quite common for these functions to check for the needed buffersize when buffer=NULL and size=0 is passed. I did a quick check on W2K3 and this is what is returned: sizePath = 0;