Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-05-26 18:29:29 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-06-23 17:27:42 +0400
commite24ab62e1cefe4f73fe259fbf225fa14a948a188 (patch)
tree25605fffcf2470f4fb30e534caa76898b4f2c400 /include
parentad972ce4f3a448ea45198230d2ff2668d675f6c8 (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.h4
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);
}
};