儲存庫 vbox 的更動 42149
- 時間撮記:
- 2012-7-13 下午03:22:03 (12 年 以前)
- 位置:
- trunk/src/VBox/Additions/common/VBoxService/testcase
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/common/VBoxService/testcase/Makefile.kmk
r41477 r42149 28 28 # 29 29 tstUserInfo_TEMPLATE = VBOXGUESTR3EXE 30 tstUserInfo_DEFS.win = _WIN32_WINNT=0x0400 _UNICODE UNICODE31 30 tstUserInfo_SOURCES = \ 32 31 tstUserInfo.cpp -
trunk/src/VBox/Additions/common/VBoxService/testcase/tstUserInfo.cpp
r38636 r42149 21 21 *******************************************************************************/ 22 22 #ifdef RT_OS_WINDOWS 23 # include <windows.h> 24 # include <tchar.h> 23 # include <Windows.h> 25 24 # include <stdio.h> 26 25 # include <Shlobj.h> … … 50 49 } 51 50 #ifdef RT_OS_WINDOWS 52 TCHARszPath[MAX_PATH];53 HRESULT hRes = SHGetFolderPath (0, CSIDL_APPDATA, 0, 0,szPath);51 WCHAR wszPath[MAX_PATH]; 52 HRESULT hRes = SHGetFolderPathW(0, CSIDL_APPDATA, 0, 0, wszPath); 54 53 55 54 if (SUCCEEDED(hRes)) 56 55 { 57 RTPrintf("SHGetFolderPathW (CSIDL_APPDATA) = %ls\n", szPath);58 hRes = SHGetFolderPath (0, CSIDL_PERSONAL, 0, 0,szPath);56 RTPrintf("SHGetFolderPathW (CSIDL_APPDATA) = %ls\n", wszPath); 57 hRes = SHGetFolderPathW(0, CSIDL_PERSONAL, 0, 0, wszPath); 59 58 if (SUCCEEDED(hRes)) 60 59 { 61 RTPrintf("SHGetFolderPathW (CSIDL_PERSONAL) = %ls\n", szPath);60 RTPrintf("SHGetFolderPathW (CSIDL_PERSONAL) = %ls\n", wszPath); 62 61 } 63 62 else … … 74 73 RTPrintf("APPDATA = %s\n", getenv("APPDATA")); 75 74 #endif 76 return RT_SUCCESS(rc) ? 0 : 1;75 return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE; 77 76 } 78 77
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器