diff options
Diffstat (limited to 'src/gdiplus')
-rw-r--r-- | src/gdiplus/cdwclpp.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gdiplus/cdwclpp.cpp b/src/gdiplus/cdwclpp.cpp index 0e3c5ea..2d1c7e6 100644 --- a/src/gdiplus/cdwclpp.cpp +++ b/src/gdiplus/cdwclpp.cpp @@ -146,12 +146,11 @@ static void cdcreatecanvas(cdCanvas* canvas, void *data) if (wtype == -1) { - char filename[1024]; - char tmpPath[512]; - char str[1024]; + char filename[10240]; + char str[10240]; - GetTempPath(512, tmpPath); - GetTempFileName(tmpPath, "~cd", 0, filename); + if (!cdStrTmpFileName(filename)) + return; sprintf(str, "%s %s", filename, strsize); cdcreatecanvasMF(canvas, str); |