ID: |
5958
|
Fixed in: |
|
Issue Date: |
2010-06-09 22:11 AEST
|
Owner: | CVS Support
|
Last Modified: | 2010-06-09 21:24 AEST | Reporter: | Arthur Barrett
|
Current Est. | 0.0 hours
| % Complete: | 0.0
|
Status: | NEW /
|
Severity: | normal
|
Affected: | 2.8.01
|
Description: | No c:\windows\temp on windows 7? need to change CFileAccess::wtempdir()
|
Actions:
|
2010-06-09 22:11 AEST by Arthur Barrett - No c:\windows\temp on windows 7? need to change CFileAccess::wtempdir() and other places that use
code like this:
if(!GetEnvironmentVariableW(_T("TEMP"),(TCHAR*)dir.data(),(DWORD)dir.size()) &&
!GetEnvironmentVariableW(_T("TMP"),(TCHAR*)dir.data(),(DWORD)dir.size()))
{
// No TEMP or TMP, use default <windir>\TEMP
// Not valid on Windows 7 - global temp doesn't appear to exist..
GetWindowsDirectoryW((wchar_t*)dir.data(),(UINT)dir.size());
wcscat((wchar_t*)dir.data(),L"\\TEMP");
} |
|
2010-06-09 22:24 AEST by Arthur Barrett - Tony added a comment abou this, but did not change it (in CVS Suite 2010):
You've made a comment but not fixed it. Was than intentional? I've created bug 5958 to track this
issue.
> CVSROOT: /usr/local/cvs
> Module name: cvsnt
> Changes by: tmh@nodomain.org Tue Jun 8 15:38:15 2010
> On host: 2001:8b0:178:2:ad3f:9c96:8924:b11a
>
> Directory: cvsnt/cvsapi/win32
>
> M FileAccess.cpp CVSNT_BRANCH_2_5_03_2382
> 1.1.2.18.4.8 -> 1.1.2.18.4.9 Bug Id:
>
> Directory: cvsnt/cvstools
>
Index: FileAccess.cpp
===============================================================
====
RCS file: /usr/local/cvs/cvsnt/cvsapi/win32/FileAccess.cpp,v
retrieving revision 1.1.2.18.4.8
retrieving revision 1.1.2.18.4.9
diff -c -r1.1.2.18.4.8 -r1.1.2.18.4.9
*** FileAccess.cpp 17 Aug 2009 18:05:08 -0000 1.1.2.18.4.8
--- FileAccess.cpp 8 Jun 2010 15:38:27 -0000 1.1.2.18.4.9
***************
*** 475,480 ****
--- 475,481 ----
!GetEnvironmentVariableW(_T("TMP"),(TCHAR*)dir.data(),(DWORD)dir.size()))
{
// No TEMP or TMP, use default <windir>\TEMP
+ // Not valid on Windows 7 - global temp doesn't appear to exist..
GetWindowsDirectoryW((wchar_t*)dir.data(),(UINT)dir.size());
wcscat((wchar_t*)dir.data(),L"\\TEMP");
}
|
|