diff options
author | scuri <scuri> | 2010-12-06 19:24:50 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-12-06 19:24:50 +0000 |
commit | 5ea68c05f28050068fec17d82be7ebca97feeba7 (patch) | |
tree | 77fab9a36212409ca9045eae9f00906df2dee38e /src/gdiplus | |
parent | 38c6855890e912c9ff9ba64db53295df96d8f345 (diff) |
*** empty log message ***
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); |