dlls/userenv: fixed stubs GetUserProfileDirectoryW/A (2nd try)
Nikolay Sivov
bunglehead at gmail.com
Tue Mar 3 14:26:54 CST 2009
Andreas Rosenberg wrote:
+ if ( !lpcchSize ) {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ SetLastError(ERROR_MORE_DATA);
+ }
+ }
+ }
+ else
+ SetLastError(ERROR_REGISTRY_CORRUPT);
+ }
+ else
+ SetLastError(ERROR_REGISTRY_CORRUPT);
return FALSE;
All these SetLastError are still potentially wrong since you don't check
this error codes in your tests.
More information about the wine-devel
mailing list