diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-02-01 17:30:28 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-02-01 17:30:28 +0000 |
| commit | 7eae5f4f873fc3911bf8ee3556391e89b1ec597e (patch) | |
| tree | 7ccf70334322e4982768a77a1e08daa2ec30b36c /fluid | |
| parent | 4fb627c3d81a7574490d2e9fa1f1af60979deafa (diff) | |
Use GetTempPath() under WIN32 for the clipboard file location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 7fa063de7..70ade32d7 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1,5 +1,5 @@ // -// "$Id: fluid.cxx,v 1.15.2.11 2001/01/28 06:57:33 spitzak Exp $" +// "$Id: fluid.cxx,v 1.15.2.12 2001/02/01 17:30:28 easysw Exp $" // // FLUID main entry for the Fast Light Tool Kit (FLTK). // @@ -251,7 +251,15 @@ static int ipasteoffset; static char* cutfname() { #ifdef WIN32 - return "\\.fluid_cut_buffer"; + static char name[MAX_PATH+16] = ""; + + if (!name[0]) { + if (!GetTempPath(sizeof(name), name)) strcpy(name,"\\"); // failure + + strcat(name, ".fluidcutbuffer"); + } + + return name; #else static char name[256] = "~/.fluid_cut_buffer"; static char beenhere; @@ -465,5 +473,5 @@ int main(int argc,char **argv) { } // -// End of "$Id: fluid.cxx,v 1.15.2.11 2001/01/28 06:57:33 spitzak Exp $". +// End of "$Id: fluid.cxx,v 1.15.2.12 2001/02/01 17:30:28 easysw Exp $". // |
