Removed HEAP_strdupA.
diff --git a/windows/clipboard.c b/windows/clipboard.c
index 76e113b..af2f798 100644
--- a/windows/clipboard.c
+++ b/windows/clipboard.c
@@ -1217,12 +1217,13 @@
lpNewFormat->wFormatID = LastRegFormat;
lpNewFormat->wRefCount = 1;
- lpNewFormat->Name = (LPSTR)HEAP_strdupA(GetProcessHeap(), 0, FormatName);
- if(lpNewFormat->Name == NULL) {
+ if (!(lpNewFormat->Name = HeapAlloc(GetProcessHeap(), 0, strlen(FormatName)+1 )))
+ {
WARN("No more memory for the new format name!\n");
HeapFree(GetProcessHeap(), 0, lpNewFormat);
return 0;
}
+ strcpy( lpNewFormat->Name, FormatName );
lpNewFormat->wDataPresent = 0;
lpNewFormat->hData16 = 0;