mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 710989 - Fix possible memset underflow in Time::Explode(). r=cjones
This commit is contained in:
parent
339f10fddc
commit
d4616f491f
@ -195,7 +195,7 @@ void Time::Explode(bool is_local, Exploded* exploded) const {
|
||||
SYSTEMTIME st;
|
||||
if (!success || !FileTimeToSystemTime(&ft, &st)) {
|
||||
NOTREACHED() << "Unable to convert time, don't know why";
|
||||
ZeroMemory(exploded, sizeof(exploded));
|
||||
ZeroMemory(exploded, sizeof(*exploded));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user