projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5478a7
)
[SETUPAPI] CMP_RegisterNotification: When a window is registered, pass the window...
author
Eric Kohl
<eric.kohl@reactos.org>
Sun, 7 Jul 2019 21:46:25 +0000
(23:46 +0200)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sun, 7 Jul 2019 21:47:01 +0000
(23:47 +0200)
dll/win32/setupapi/cfgmgr.c
patch
|
blob
|
history
diff --git
a/dll/win32/setupapi/cfgmgr.c
b/dll/win32/setupapi/cfgmgr.c
index
0624ed8
..
55c3d64
100644
(file)
--- a/
dll/win32/setupapi/cfgmgr.c
+++ b/
dll/win32/setupapi/cfgmgr.c
@@
-602,8
+602,9
@@
CMP_RegisterNotification(
RPC_BINDING_HANDLE BindingHandle = NULL;
PNOTIFY_DATA pNotifyData = NULL;
WCHAR szNameBuffer[256];
RPC_BINDING_HANDLE BindingHandle = NULL;
PNOTIFY_DATA pNotifyData = NULL;
WCHAR szNameBuffer[256];
-
DWORD dwError
;
+
INT nLength
;
DWORD ulUnknown9 = 0;
DWORD ulUnknown9 = 0;
+ DWORD dwError;
CONFIGRET ret = CR_SUCCESS;
FIXME("CMP_RegisterNotification(%p %p %lu %p)\n",
CONFIGRET ret = CR_SUCCESS;
FIXME("CMP_RegisterNotification(%p %p %lu %p)\n",
@@
-635,8
+636,16
@@
CMP_RegisterNotification(
{
FIXME("Register a window\n");
{
FIXME("Register a window\n");
- /* FIXME */
- szNameBuffer[0] = UNICODE_NULL;
+ nLength = GetWindowTextW((HWND)hRecipient,
+ szNameBuffer,
+ ARRAYSIZE(szNameBuffer));
+ if (nLength == 0)
+ {
+ HeapFree(GetProcessHeap(), 0, pNotifyData);
+ return CR_INVALID_DATA;
+ }
+
+ FIXME("Register window: %S\n", szNameBuffer);
}
else if ((ulFlags & DEVICE_NOTIFY_SERVICE_HANDLE) == DEVICE_NOTIFY_SERVICE_HANDLE)
{
}
else if ((ulFlags & DEVICE_NOTIFY_SERVICE_HANDLE) == DEVICE_NOTIFY_SERVICE_HANDLE)
{