diff options
| author | 2015-08-27 14:08:38 +0300 | |
|---|---|---|
| committer | 2015-08-27 14:08:38 +0300 | |
| commit | ee826f16cbced0edc825cb19e89ee464535283db (patch) | |
| tree | b67a012655d21e9caffe73346f3f5a28b08aca4f /src/osd | |
| parent | d1c123beeb79a9817743e7597fff38a05a9d7599 (diff) | |
Fixed register_window_classcreate_window_class
First, try to unregister previously registered class.
Diffstat (limited to 'src/osd')
| -rw-r--r-- | src/osd/windows/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/windows/output.c b/src/osd/windows/output.c index ae6ea535334..7c7dbe35484 100644 --- a/src/osd/windows/output.c +++ b/src/osd/windows/output.c @@ -171,6 +171,8 @@ static int create_window_class(void) wc.lpszClassName = OUTPUT_WINDOW_CLASS; wc.hInstance = GetModuleHandleUni(); wc.lpfnWndProc = output_window_proc; + + UnregisterClass(wc.lpszClassName, wc.hInstance); // register the class; fail if we can't if (!RegisterClass(&wc)) |
