diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-26 18:29:29 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-06-23 17:27:42 +0400 |
commit | e24ab62e1cefe4f73fe259fbf225fa14a948a188 (patch) | |
tree | 25605fffcf2470f4fb30e534caa76898b4f2c400 /include | |
parent | ad972ce4f3a448ea45198230d2ff2668d675f6c8 (diff) |
Replace memset with ZeroMemory.
The ZeroMemory macro makes clear what it does compared to `memset(foo, 0, bar)`.
Diffstat (limited to 'include')
-rw-r--r-- | include/moreuuids.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/moreuuids.h b/include/moreuuids.h index 2a57356f7..07531c5f0 100644 --- a/include/moreuuids.h +++ b/include/moreuuids.h @@ -377,7 +377,7 @@ struct WAVEFORMATEXPS2 : public WAVEFORMATEX { DWORD dwInterleave;
struct WAVEFORMATEXPS2() {
- memset(this, 0, sizeof(*this));
+ ZeroMemory(this, sizeof(*this));
cbSize = sizeof(WAVEFORMATEXPS2) - sizeof(WAVEFORMATEX);
}
};
@@ -1112,7 +1112,7 @@ struct WAVEFORMATEX_HDMV_LPCM : public WAVEFORMATEX { BYTE channel_conf;
struct WAVEFORMATEX_HDMV_LPCM() {
- memset(this, 0, sizeof(*this));
+ ZeroMemory(this, sizeof(*this));
cbSize = sizeof(WAVEFORMATEX_HDMV_LPCM) - sizeof(WAVEFORMATEX);
}
};
|