Commit f277b969 authored by Alexandre Julliard's avatar Alexandre Julliard

d3dx11: Build with msvcrt.

parent 7f2be06f
......@@ -3,6 +3,8 @@ MODULE = d3dx11_42.dll
IMPORTS = d3dcompiler
PARENTSRC = ../d3dx11_43
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
async.c \
main.c \
......
......@@ -3,6 +3,8 @@ MODULE = d3dx11_43.dll
IMPORTLIB = d3dx11
IMPORTS = d3dcompiler
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
async.c \
main.c \
......
......@@ -16,13 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include "d3dx11.h"
#include "d3dcompiler.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
......@@ -317,13 +314,13 @@ HRESULT WINAPI D3DX11CreateAsyncFileLoaderW(const WCHAR *filename, ID3DX11DataLo
return E_OUTOFMEMORY;
object->ID3DX11DataLoader_iface.lpVtbl = &filedataloadervtbl;
object->u.file.path = HeapAlloc(GetProcessHeap(), 0, (strlenW(filename) + 1) * sizeof(WCHAR));
object->u.file.path = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(filename) + 1) * sizeof(WCHAR));
if (!object->u.file.path)
{
HeapFree(GetProcessHeap(), 0, object);
return E_OUTOFMEMORY;
}
strcpyW(object->u.file.path, filename);
lstrcpyW(object->u.file.path, filename);
object->data = NULL;
object->size = 0;
......
......@@ -17,8 +17,6 @@
*
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#define COBJMACROS
......
......@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include "d3dx11.h"
#include "d3dcompiler.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment