Null termnate the pUserMappings variable to prevent memory corruption.