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
7164fde4
Commit
7164fde4
authored
Aug 31, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Correctly reallocate buffer in NetWkstaUserGetInfo.
parent
637bcd5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
netapi32.c
dlls/netapi32/netapi32.c
+5
-0
No files found.
dlls/netapi32/netapi32.c
View file @
7164fde4
...
@@ -1627,8 +1627,13 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LMSTR reserved, DWORD level,
...
@@ -1627,8 +1627,13 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LMSTR reserved, DWORD level,
(
lstrlenW
(
ui
->
wkui0_username
)
+
1
)
*
sizeof
(
WCHAR
),
(
lstrlenW
(
ui
->
wkui0_username
)
+
1
)
*
sizeof
(
WCHAR
),
(
LPVOID
*
)
bufptr
);
(
LPVOID
*
)
bufptr
);
if
(
nastatus
!=
NERR_Success
)
if
(
nastatus
!=
NERR_Success
)
{
NetApiBufferFree
(
ui
);
return
nastatus
;
return
nastatus
;
}
}
ui
=
(
PWKSTA_USER_INFO_0
)
*
bufptr
;
ui
->
wkui0_username
=
(
LMSTR
)
(
*
bufptr
+
sizeof
(
WKSTA_USER_INFO_0
));
}
break
;
break
;
}
}
...
...
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