If you're using Windows 7, you can use the built-in partition manager. Type "disk management" into your start menu search field and hit enter. Now you're in the Disk Management console. Since your D: partition is empty, just delete the D partition. Now you can just shrink your C: partition to the desired size and reformat the remaining free space back into your D partition.