- /* Check if we have a video memory list */
- if (VidMemList)
- {
- /* Start a loop here */
- PVIDEOMEMORY VidMem = VidMemList;
-
- /* Loop all the heaps we have */
- while (dwNumHeaps--)
- {
- /* Copy from one format to the other */
- pvmList->dwFlags = VidMem->dwFlags;
- pvmList->fpStart = VidMem->fpStart;
- pvmList->fpEnd = VidMem->fpEnd;
- pvmList->ddsCaps = VidMem->ddsCaps;
- pvmList->ddsCapsAlt = VidMem->ddsCapsAlt;
- pvmList->dwHeight = VidMem->dwHeight;
-
- /* Advance in both structures */
- pvmList++;
- VidMem++;
- }
-
- /* Free our structure */
- LocalFree(VidMemList);
- }
-
-