On a hard drive with two partitions if I shrink the first does the space become unallocated or is it automatically added to the second partition?

If unallocated then is Windows 7 disk management sophisticated enough to add that space to the second partition if I want to expand it? (without data loss!)

I can find no documentation on this in the windows help file.