Lines Matching refs:Buf
25 …me(CComPtr<IShellFolder>& spFolder, LPCITEMIDLIST pidlRelative, SHGDNF uFlags, WCHAR Buf[MAX_PATH]) in GetDisplayName()
33 hr = StrRetToBufW(&strret, pidlRelative, Buf, MAX_PATH); in GetDisplayName()
93 WCHAR Buf[MAX_PATH], *Ptr; in Test_GetDisplayNameOf() local
94 if (FAILED(GetDisplayName(spFolder, fontPidl, SHGDN_FORPARSING, Buf))) in Test_GetDisplayNameOf()
102 BOOL bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
103 Ptr = PathFindNextComponentW(Buf); in Test_GetDisplayNameOf()
104 trace("Path: %s\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
105 ok(bRelative == FALSE, "Path not absolute? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
106 ok(Ptr != (Buf + wcslen(Buf)), "Did not find a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
109 if (FAILED(GetDisplayName(spFolder, fontPidl, SHGDN_INFOLDER, Buf))) in Test_GetDisplayNameOf()
112 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
113 Ptr = PathFindNextComponentW(Buf); in Test_GetDisplayNameOf()
114 trace("Path: %s\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
115 ok(bRelative != FALSE, "Path not relative? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
116 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
119 if (FAILED(GetDisplayName(spFolder, fontPidl, SHGDN_NORMAL, Buf))) in Test_GetDisplayNameOf()
122 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
123 Ptr = PathFindNextComponentW(Buf); in Test_GetDisplayNameOf()
124 trace("Path: %s\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
125 ok(bRelative != FALSE, "Path not relative? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
126 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
129 if (FAILED(GetDisplayName(spFolder, fontPidl, SHGDN_INFOLDER | SHGDN_FORPARSING, Buf))) in Test_GetDisplayNameOf()
132 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
133 Ptr = PathFindNextComponentW(Buf); in Test_GetDisplayNameOf()
134 trace("Path: %s\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
138 ok(bRelative == FALSE, "Path not absolute? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
139 ok(Ptr != (Buf + wcslen(Buf)), "Did not find a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
143 ok(bRelative != FALSE, "Path not relative? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
144 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
148 if (FAILED(GetDisplayName(spFolder, fontPidl, SHGDN_FORADDRESSBAR, Buf))) in Test_GetDisplayNameOf()
151 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
152 Ptr = PathFindNextComponentW(Buf); in Test_GetDisplayNameOf()
153 trace("Path: %s\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
154 ok(bRelative != FALSE, "Path not relative? (%s)\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
160 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
165 ok(Ptr != (Buf + wcslen(Buf)), "Did not find a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
166 …ok(!_wcsnicmp(FolderName, Buf, wcslen(FolderName)), "Result (%s) does not start with fonts folder … in Test_GetDisplayNameOf()
167 wine_dbgstr_w(Buf), wine_dbgstr_w(FolderName)); in Test_GetDisplayNameOf()