> + SetLastError(ERROR_INSUFFICIENT_BUFFER); > return TRUE; > > Why are you setting ERROR_INSUFFICIENT_BUFFER in the success case?
Oops, just read the patch more closely. Please ignore this comment, I obviously missed the return statement above it. --Juan