/[winpt]/trunk/Src/wptW32API.cpp
ViewVC logotype

Diff of /trunk/Src/wptW32API.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 181 by twoaday, Tue Mar 14 11:01:22 2006 UTC revision 190 by twoaday, Mon Mar 27 10:05:14 2006 UTC
# Line 555  get_temp_name (char *buf, DWORD buflen, Line 555  get_temp_name (char *buf, DWORD buflen,
555          sprintf (tmp, "%08lX", GetTickCount ());          sprintf (tmp, "%08lX", GetTickCount ());
556          name = tmp;          name = tmp;
557      }      }
558    
559        /* in the mobile mode we use a local temp folder
560           with the fixed name 'temp'. */
561        if (mobile_mode_active) {
562            _snprintf (buf, buflen-1, "temp\\%s", name);
563            return 0;
564        }
565    
566      if (!GetTempPath (buflen - strlen (name) -2, buf)) {      if (!GetTempPath (buflen - strlen (name) -2, buf)) {
567          log_debug ("GetTempPath() failed ec=%d\n", (int)GetLastError ());          log_debug ("GetTempPath() failed ec=%d\n", (int)GetLastError ());
568          return -1;          return -1;

Legend:
Removed from v.181  
changed lines
  Added in v.190

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26