Commit a1272b37 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Use memcpy instead of weird casts.

parent ee1c5780
...@@ -2740,7 +2740,7 @@ BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD level, LPBYTE pDriverInfo) ...@@ -2740,7 +2740,7 @@ BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD level, LPBYTE pDriverInfo)
di3 = *(DRIVER_INFO_3A *)pDriverInfo; di3 = *(DRIVER_INFO_3A *)pDriverInfo;
else { else {
memset(&di3, 0, sizeof(di3)); memset(&di3, 0, sizeof(di3));
*(DRIVER_INFO_2A *)&di3 = *(DRIVER_INFO_2A *)pDriverInfo; memcpy(&di3, pDriverInfo, sizeof(DRIVER_INFO_2A));
} }
if(!di3.pName || !di3.pDriverPath || !di3.pConfigFile || if(!di3.pName || !di3.pDriverPath || !di3.pConfigFile ||
......
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