Skip to content

Commit a25e7ee

Browse files
committed
[WKSSVC] Stubplement support for level 1101 in NetrWkstaUserGetInfo
Fixes crash in netapi32_winetest:wksta introduced in 45b008d
1 parent 132d571 commit a25e7ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

base/services/wkssvc/rpcserver.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,19 @@ NetrWkstaUserGetInfo(
847847
break;
848848

849849
case 1101:
850+
pUserInfo = midl_user_allocate(sizeof(WKSTA_USER_INFO_1101));
851+
if (pUserInfo == NULL)
852+
{
853+
ERR("Failed to allocate WKSTA_USER_INFO_1101\n");
854+
dwResult = ERROR_NOT_ENOUGH_MEMORY;
855+
break;
856+
}
857+
858+
ZeroMemory(pUserInfo, sizeof(WKSTA_USER_INFO_1101));
859+
850860
/* FIXME: wkui1101_oth_domains */
861+
862+
*UserInfo = pUserInfo;
851863
break;
852864

853865
default:

0 commit comments

Comments
 (0)