Retired Army Maj. Gen. Gerald E. Galloway, 78, a veteran of World War II and the Korean conflict and who was commanding general of Fort Belvoir from 1958 to 1960, died Monday in his home in Annandale after a heart attack.

During World War II, Gen. Galloway commanded an engineer amphibian regiment and then an engineer special brigade in the Southwest Pacific Theater.

Between 1949 and 1951, he was chief of the construction and operations division in the Office of the Chief of Engineers in Washington. He was corps engineer of the IX Army Corps in Korea from 1951 to 1953, returning to become assistant commandant of the Engineer School at Fort Belvoir, where he served for three years.

He assumed command of the Army Engineer Center and became commanding general of Fort Belvoir in November 1958. In 1960, he became Pacific Ocean Division Engineer with headquarters in Honolulu, then retired from active duty in 1962.

His medals included the Distinguished Service Medal, the Legion of Merit with oak leaf cluster, the Bronze Star Medal with oak leaf cluster, and the Air Medal.

Gen. Galloway, was a native of New York City and a 1925 graduate of the U.S. Military Academy at West Point. He earned a degree in civil engineering at Cornell University in 1926, then graduated from the Engineer School at Fort Belvoir in 1928. He also was a graduate of the Industrial College of the Armed Forces.

From 1928 to 1934, he taught chemistry and electricity at West Point. Prior to World War II he also had been assistant to the chief of the Operations and Training Division in the Office of the Chief of Engineers in Washington.

After retiring from active duty, Gen. Galloway was deputy director of public works in Nassau County, N.Y., then returned to Washington as a managing director of the Washington officer of the consulting engineering firm of McFarland, Johnson, and Gibbons, before retiring in 1978.

Survivors include his wife, the former Jane Shirley, of Annandale; a son, Army Col. G.E. Galloway Jr. of West Point, N.Y.; a sister, Grace Holden of White Plains, N.Y.; a brother, retired Army Col. Donald H., of Lake Wales, Fla., and six grandchildren.