Skip to content
Snippets Groups Projects
Commit d8756323 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

oops

parent d2292481
Branches
Tags
No related merge requests found
......@@ -143,7 +143,7 @@ static wchar_t *wbuf[2] = {NULL, NULL};
static void setwbuf(int i, const char *f)
{
if(i != 0 || i != 1) return;
if(i != 0 && i != 1) return;
size_t l = strlen(f);
unsigned wn = utf8toUtf16(f, (unsigned) l, NULL, 0) + 1;
wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment