Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7c9151c1
Commit
7c9151c1
authored
Mar 17, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Mar 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Allow updating knownfolder definitions.
parent
2a588697
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
shellpath.c
dlls/shell32/shellpath.c
+0
-3
shellpath.c
dlls/shell32/tests/shellpath.c
+20
-0
No files found.
dlls/shell32/shellpath.c
View file @
7c9151c1
...
...
@@ -3931,9 +3931,6 @@ static HRESULT WINAPI foldermanager_RegisterFolder(
if
(
SUCCEEDED
(
hr
))
{
if
(
dwDisp
==
REG_OPENED_EXISTING_KEY
)
hr
=
E_FAIL
;
if
(
SUCCEEDED
(
hr
))
hr
=
HRESULT_FROM_WIN32
(
RegSetValueExW
(
hKey
,
szCategory
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pKFD
->
category
,
sizeof
(
pKFD
->
category
)));
...
...
dlls/shell32/tests/shellpath.c
View file @
7c9151c1
...
...
@@ -2458,6 +2458,26 @@ static void test_knownFolders(void)
hr
=
IKnownFolder_Release
(
folder
);
ok
(
hr
==
S_OK
,
"failed to release KnownFolder instance: 0x%08x
\n
"
,
hr
);
/* update the folder */
CoTaskMemFree
(
kfDefinition
.
pszName
);
kfDefinition
.
pszName
=
CoTaskMemAlloc
(
sizeof
(
sExample2
));
lstrcpyW
(
kfDefinition
.
pszName
,
sExample2
);
hr
=
IKnownFolderManager_RegisterFolder
(
mgr
,
&
newFolderId
,
&
kfDefinition
);
ok
(
hr
==
S_OK
,
"failed to re-register known folder: 0x%08x
\n
"
,
hr
);
hr
=
IKnownFolderManager_GetFolder
(
mgr
,
&
newFolderId
,
&
folder
);
ok
(
hr
==
S_OK
,
"failed to get known folder: 0x%08x
\n
"
,
hr
);
hr
=
IKnownFolder_GetFolderDefinition
(
folder
,
&
kfSubDefinition
);
ok
(
hr
==
S_OK
,
"failed to get folder definition: 0x%08x
\n
"
,
hr
);
ok
(
!
memcmp
(
kfDefinition
.
pszName
,
kfSubDefinition
.
pszName
,
sizeof
(
sExample2
)),
"Got wrong updated name: %s
\n
"
,
wine_dbgstr_w
(
kfSubDefinition
.
pszName
));
FreeKnownFolderDefinitionFields
(
&
kfSubDefinition
);
hr
=
IKnownFolder_Release
(
folder
);
ok
(
hr
==
S_OK
,
"failed to release KnownFolder instance: 0x%08x
\n
"
,
hr
);
}
hr
=
IKnownFolderManager_UnregisterFolder
(
mgr
,
&
newFolderId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment