Removed ddrval assignment from lpDD->CreateSurface(...) as its value was not used until the next assignment.